home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-09-05 | 29.6 KB | [TEXT/ttxt] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Sep 5 01:42:00 1996, modified Thu Sep 5 01:42:00 1996, creator SimpleText, type ASCII, 29710 bytes "basic.man" , at 0x748e 332 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
| |
100%
| xdgMime
| text/html
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 62 61 73 69 63 2e | 6d 61 6e 00 00 00 00 00 |..basic.|man.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 74 74 78 | 74 01 00 00 00 00 00 00 |.TEXTttx|t.......|
|00000050| 00 00 00 00 00 74 0e 00 | 00 01 4c ae 54 18 a8 ae |.....t..|..L.T...|
|00000060| 54 18 a8 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |T.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 18 3c 00 00 |........|.....<..|
|00000080| 3c 48 54 4d 4c 3e 0d 3c | 48 45 41 44 3e 0d 3c 54 |<HTML>.<|HEAD>.<T|
|00000090| 49 54 4c 45 3e 43 68 69 | 70 6d 75 6e 6b 20 42 61 |ITLE>Chi|pmunk Ba|
|000000a0| 73 69 63 20 4d 61 6e 20 | 50 61 67 65 3c 2f 54 49 |sic Man |Page</TI|
|000000b0| 54 4c 45 3e 0d 3c 48 31 | 3e 43 68 69 70 6d 75 6e |TLE>.<H1|>Chipmun|
|000000c0| 6b 20 42 61 73 69 63 20 | 4d 61 6e 20 50 61 67 65 |k Basic |Man Page|
|000000d0| 3c 2f 48 31 3e 0d 3c 2f | 48 45 41 44 3e 0d 3c 42 |</H1>.</|HEAD>.<B|
|000000e0| 4f 44 59 3e 0d 3c 48 52 | 3e 0d 3c 50 52 45 3e 0d |ODY>.<HR|>.<PRE>.|
|000000f0| 0d 20 20 20 20 42 41 53 | 49 43 28 31 29 09 09 63 |. BAS|IC(1)..c|
|00000100| 68 69 70 6d 75 6e 6b 2d | 62 61 73 69 63 20 76 33 |hipmunk-|basic v3|
|00000110| 2e 35 2e 30 09 20 09 09 | 42 41 53 49 43 28 31 29 |.5.0. ..|BASIC(1)|
|00000120| 0d 0d 0d 09 43 68 69 70 | 6d 75 6e 6b 20 42 41 53 |....Chip|munk BAS|
|00000130| 49 43 20 2d 20 27 42 41 | 53 49 43 27 20 6c 61 6e |IC - 'BA|SIC' lan|
|00000140| 67 75 61 67 65 20 69 6e | 74 65 72 70 72 65 74 65 |guage in|terprete|
|00000150| 72 0d 09 0d 0d 20 20 20 | 20 53 59 4e 4f 50 53 49 |r.... | SYNOPSI|
|00000160| 53 09 28 20 55 4e 49 58 | 20 29 0d 0d 09 62 61 73 |S.( UNIX| )...bas|
|00000170| 69 63 20 5b 20 66 69 6c | 65 6e 61 6d 65 20 5d 0d |ic [ fil|ename ].|
|00000180| 0d 20 20 20 20 44 45 53 | 43 52 49 50 54 49 4f 4e |. DES|CRIPTION|
|00000190| 0d 0d 09 43 68 69 70 6d | 75 6e 6b 20 62 61 73 69 |...Chipm|unk basi|
|000001a0| 63 20 69 73 20 61 6e 20 | 69 6e 74 65 72 70 72 65 |c is an |interpre|
|000001b0| 74 65 72 20 66 6f 72 20 | 74 68 65 20 42 41 53 49 |ter for |the BASI|
|000001c0| 43 20 6c 61 6e 67 75 61 | 67 65 2e 20 49 66 0d 09 |C langua|ge. If..|
|000001d0| 61 20 66 69 6c 65 6e 61 | 6d 65 20 70 61 72 61 6d |a filena|me param|
|000001e0| 65 74 65 72 20 69 73 20 | 67 69 76 65 6e 2c 20 74 |eter is |given, t|
|000001f0| 68 65 6e 20 74 68 65 20 | 6e 61 6d 65 64 20 70 72 |hen the |named pr|
|00000200| 6f 67 72 61 6d 20 66 69 | 6c 65 0d 09 69 73 20 6c |ogram fi|le..is l|
|00000210| 6f 61 64 65 64 20 69 6e | 74 6f 20 6d 65 6d 6f 72 |oaded in|to memor|
|00000220| 79 20 61 6e 64 20 72 75 | 6e 2e 20 20 0d 0d 09 42 |y and ru|n. ...B|
|00000230| 61 73 69 63 20 63 6f 6d | 6d 61 6e 64 73 20 61 6e |asic com|mands an|
|00000240| 64 20 73 74 61 74 65 6d | 65 6e 74 73 20 63 61 6e |d statem|ents can|
|00000250| 20 62 65 20 65 6e 74 65 | 72 65 64 20 61 6e 64 20 | be ente|red and |
|00000260| 69 6e 74 65 72 70 72 65 | 74 65 64 0d 09 69 6e 20 |interpre|ted..in |
|00000270| 69 6d 6d 65 64 69 61 74 | 65 20 6d 6f 64 65 20 6f |immediat|e mode o|
|00000280| 72 20 65 78 65 63 75 74 | 65 64 20 61 73 20 70 72 |r execut|ed as pr|
|00000290| 6f 67 72 61 6d 20 73 74 | 61 74 65 6d 65 6e 74 73 |ogram st|atements|
|000002a0| 20 77 68 65 6e 20 74 68 | 65 0d 09 42 61 73 69 63 | when th|e..Basic|
|000002b0| 20 70 72 6f 67 72 61 6d | 20 69 73 20 72 75 6e 2e | program| is run.|
|000002c0| 20 20 41 20 62 75 69 6c | 74 2d 69 6e 20 6c 69 6e | A buil|t-in lin|
|000002d0| 65 20 6e 75 6d 62 65 72 | 20 62 61 73 65 64 20 65 |e number| based e|
|000002e0| 64 69 74 6f 72 0d 09 61 | 6c 6c 6f 77 73 20 70 72 |ditor..a|llows pr|
|000002f0| 6f 67 72 61 6d 20 69 6e | 70 75 74 20 66 72 6f 6d |ogram in|put from|
|00000300| 20 74 68 65 20 63 6f 6e | 73 6f 6c 65 20 6b 65 79 | the con|sole key|
|00000310| 62 6f 61 72 64 2e 20 20 | 53 65 65 20 62 65 6c 6f |board. |See belo|
|00000320| 77 0d 09 66 6f 72 20 74 | 68 65 20 63 6f 6d 6d 61 |w..for t|he comma|
|00000330| 6e 64 73 20 61 6e 64 20 | 73 74 61 74 65 6d 65 6e |nds and |statemen|
|00000340| 74 73 20 74 68 61 74 20 | 74 68 65 20 69 6e 74 65 |ts that |the inte|
|00000350| 72 70 72 65 74 65 72 0d | 09 72 65 63 6f 67 6e 69 |rpreter.|.recogni|
|00000360| 7a 65 73 2e 0d 09 0d 20 | 20 20 20 46 4c 41 47 53 |zes.... | FLAGS|
|00000370| 0d 0d 09 6e 6f 6e 65 0d | 0d 20 20 20 20 43 4f 4d |...none.|. COM|
|00000380| 4d 41 4e 44 53 0d 20 20 | 20 20 20 20 20 20 0d 09 |MANDS. | ..|
|00000390| 53 74 61 6e 64 61 72 64 | 20 6d 75 6d 62 6c 65 53 |Standard| mumbleS|
|000003a0| 6f 66 74 2d 6c 69 6b 65 | 20 42 61 73 69 63 20 43 |oft-like| Basic C|
|000003b0| 6f 6d 6d 61 6e 64 73 3a | 0d 0d 09 6c 6f 61 64 20 |ommands:|...load |
|000003c0| 53 54 52 49 4e 47 45 58 | 50 52 0d 0d 09 09 4c 6f |STRINGEX|PR....Lo|
|000003d0| 61 64 20 61 20 70 72 6f | 67 72 61 6d 20 69 6e 74 |ad a pro|gram int|
|000003e0| 6f 20 6d 65 6d 6f 72 79 | 20 66 72 6f 6d 20 74 68 |o memory| from th|
|000003f0| 65 20 6e 61 6d 65 64 20 | 66 69 6c 65 2e 20 54 68 |e named |file. Th|
|00000400| 65 0d 09 09 70 72 6f 67 | 72 61 6d 20 70 72 65 76 |e...prog|ram prev|
|00000410| 69 6f 75 73 6c 79 20 69 | 6e 20 6d 65 6d 6f 72 79 |iously i|n memory|
|00000420| 20 69 73 20 65 72 61 73 | 65 64 2e 20 20 41 6c 6c | is eras|ed. All|
|00000430| 20 66 69 6c 65 73 20 61 | 72 65 0d 09 09 63 6c 6f | files a|re...clo|
|00000440| 73 65 64 20 61 6e 64 20 | 61 6c 6c 20 76 61 72 69 |sed and |all vari|
|00000450| 61 62 6c 65 73 20 61 72 | 65 20 63 6c 65 61 72 65 |ables ar|e cleare|
|00000460| 64 2e 20 20 4c 69 6e 65 | 73 20 62 65 67 69 6e 6e |d. Line|s beginn|
|00000470| 69 6e 67 0d 09 09 77 69 | 74 68 20 74 68 65 20 27 |ing...wi|th the '|
|00000480| 23 27 20 63 68 61 72 61 | 63 74 65 72 20 77 69 6c |#' chara|cter wil|
|00000490| 6c 20 62 65 20 74 72 65 | 61 74 65 64 20 61 73 20 |l be tre|ated as |
|000004a0| 63 6f 6d 6d 65 6e 74 73 | 2e 20 0d 09 09 41 6c 6c |comments|. ...All|
|000004b0| 20 6f 74 68 65 72 20 6c | 69 6e 65 73 20 69 6e 20 | other l|ines in |
|000004c0| 74 68 65 20 66 69 6c 65 | 20 6d 75 73 74 20 62 65 |the file| must be|
|000004d0| 67 69 6e 20 77 69 74 68 | 20 61 20 6c 69 6e 65 0d |gin with| a line.|
|000004e0| 09 09 6e 75 6d 62 65 72 | 2e 20 20 44 75 70 6c 69 |..number|. Dupli|
|000004f0| 63 61 74 65 20 6c 69 6e | 65 20 6e 75 6d 62 65 72 |cate lin|e number|
|00000500| 73 20 61 72 65 20 6e 6f | 74 20 61 6c 6c 6f 77 65 |s are no|t allowe|
|00000510| 64 2e 0d 0d 0d 09 73 61 | 76 65 20 53 54 52 49 4e |d.....sa|ve STRIN|
|00000520| 47 45 58 50 52 0d 0d 09 | 09 53 61 76 65 20 74 68 |GEXPR...|.Save th|
|00000530| 65 20 63 75 72 72 65 6e | 74 20 70 72 6f 67 72 61 |e curren|t progra|
|00000540| 6d 20 74 6f 20 74 68 65 | 20 6e 61 6d 65 64 20 66 |m to the| named f|
|00000550| 69 6c 65 2e 0d 0d 09 6e | 65 77 0d 0d 09 09 45 72 |ile....n|ew....Er|
|00000560| 61 73 65 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |ase the |program |
|00000570| 69 6e 20 6d 65 6d 6f 72 | 79 2e 20 20 41 6c 6c 20 |in memor|y. All |
|00000580| 66 69 6c 65 73 20 61 72 | 65 20 63 6c 6f 73 65 64 |files ar|e closed|
|00000590| 20 61 6e 64 0d 09 09 61 | 6c 6c 20 76 61 72 69 61 | and...a|ll varia|
|000005a0| 62 6c 65 73 20 61 72 65 | 20 63 6c 65 61 72 65 64 |bles are| cleared|
|000005b0| 2e 0d 0d 09 63 6c 65 61 | 72 0d 0d 09 09 41 6c 6c |....clea|r....All|
|000005c0| 20 20 76 61 72 69 61 62 | 6c 65 73 20 61 72 65 20 | variab|les are |
|000005d0| 63 6c 65 61 72 65 64 2e | 20 20 41 6c 6c 20 61 72 |cleared.| All ar|
|000005e0| 72 61 79 73 20 61 6e 64 | 20 73 74 72 69 6e 67 0d |rays and| string.|
|000005f0| 09 09 76 61 72 69 61 62 | 6c 65 73 20 61 72 65 20 |..variab|les are |
|00000600| 64 65 61 6c 6c 6f 63 61 | 74 65 64 2e 0d 0d 09 72 |dealloca|ted....r|
|00000610| 75 6e 20 7b 20 4c 49 4e | 45 4e 55 4d 20 7d 0d 09 |un { LIN|ENUM }..|
|00000620| 72 75 6e 20 7b 20 53 54 | 52 49 4e 47 45 58 50 52 |run { ST|RINGEXPR|
|00000630| 20 7b 20 2c 20 4c 49 4e | 45 4e 55 4d 20 7d 20 7d | { , LIN|ENUM } }|
|00000640| 0d 0d 09 09 42 65 67 69 | 6e 20 65 78 65 63 75 74 |....Begi|n execut|
|00000650| 69 6f 6e 20 6f 66 20 74 | 68 65 20 70 72 6f 67 72 |ion of t|he progr|
|00000660| 61 6d 20 61 74 20 74 68 | 65 20 66 69 72 73 74 20 |am at th|e first |
|00000670| 6c 69 6e 65 2c 20 6f 72 | 20 61 74 0d 09 09 74 68 |line, or| at...th|
|00000680| 65 20 73 70 65 63 69 66 | 69 65 64 20 6c 69 6e 65 |e specif|ied line|
|00000690| 2e 20 20 41 6c 6c 20 76 | 61 72 69 61 62 6c 65 73 |. All v|ariables|
|000006a0| 20 61 72 65 20 63 6c 65 | 61 72 65 64 2e 20 20 49 | are cle|ared. I|
|000006b0| 66 20 61 0d 09 09 53 54 | 52 49 4e 47 45 58 50 52 |f a...ST|RINGEXPR|
|000006c0| 20 69 73 20 67 69 76 65 | 6e 20 74 68 65 6e 20 74 | is give|n then t|
|000006d0| 68 65 20 42 41 53 49 43 | 20 70 72 6f 67 72 61 6d |he BASIC| program|
|000006e0| 20 77 69 74 68 20 74 68 | 61 74 0d 09 09 6e 61 6d | with th|at...nam|
|000006f0| 65 20 66 69 6c 65 20 69 | 73 20 6c 6f 61 64 65 64 |e file i|s loaded|
|00000700| 20 69 6e 74 6f 20 6d 65 | 6d 6f 72 79 20 66 69 72 | into me|mory fir|
|00000710| 73 74 2e 20 20 50 72 6f | 67 72 61 6d 20 6c 69 6e |st. Pro|gram lin|
|00000720| 65 73 0d 09 09 61 72 65 | 20 65 78 65 63 75 74 65 |es...are| execute|
|00000730| 64 20 69 6e 20 6c 69 6e | 65 20 6e 75 6d 62 65 72 |d in lin|e number|
|00000740| 20 6f 72 64 65 72 2e 0d | 0d 09 63 6f 6e 74 0d 0d | order..|..cont..|
|00000750| 09 09 43 4f 4e 54 69 6e | 75 65 20 65 78 65 63 75 |..CONTin|ue execu|
|00000760| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 70 72 6f 67 |tion of |the prog|
|00000770| 72 61 6d 20 6f 6e 20 74 | 68 65 20 6e 65 78 74 20 |ram on t|he next |
|00000780| 73 74 61 74 65 6d 65 6e | 74 0d 09 09 61 66 74 65 |statemen|t...afte|
|00000790| 72 20 74 68 65 20 73 74 | 61 74 65 6d 65 6e 74 20 |r the st|atement |
|000007a0| 6f 6e 20 77 68 69 63 68 | 20 74 68 65 20 70 72 6f |on which| the pro|
|000007b0| 67 72 61 6d 20 73 74 6f | 70 70 65 64 0d 09 09 65 |gram sto|pped...e|
|000007c0| 78 65 63 75 74 69 6f 6e | 20 64 75 65 20 74 6f 20 |xecution| due to |
|000007d0| 61 20 53 54 4f 50 20 63 | 6f 6d 6d 61 6e 64 20 6f |a STOP c|ommand o|
|000007e0| 72 20 61 6e 20 65 72 72 | 6f 72 2e 20 20 53 65 65 |r an err|or. See|
|000007f0| 20 42 55 47 53 0d 09 09 | 73 65 63 74 69 6f 6e 2e | BUGS...|section.|
|00000800| 0d 0d 09 4c 49 4e 45 4e | 55 4d 20 7b 20 54 45 58 |...LINEN|UM { TEX|
|00000810| 54 20 7d 0d 09 0d 09 09 | 45 6e 74 65 72 73 20 61 |T }.....|Enters a|
|00000820| 20 70 72 6f 67 72 61 6d | 20 6c 69 6e 65 2e 20 20 | program| line. |
|00000830| 49 66 20 61 20 70 72 6f | 67 72 61 6d 20 6c 69 6e |If a pro|gram lin|
|00000840| 65 20 77 69 74 68 0d 09 | 09 6c 69 6e 65 20 6e 75 |e with..|.line nu|
|00000850| 6d 62 65 72 20 4c 49 4e | 45 4e 55 4d 20 65 78 69 |mber LIN|ENUM exi|
|00000860| 73 74 73 2c 20 74 68 65 | 6e 20 69 74 20 69 73 20 |sts, the|n it is |
|00000870| 72 65 70 6c 61 63 65 64 | 2e 0d 09 09 49 66 20 6e |replaced|....If n|
|00000880| 6f 20 54 45 58 54 20 69 | 73 20 67 69 76 65 6e 2c |o TEXT i|s given,|
|00000890| 20 74 68 65 20 74 68 65 | 20 70 72 6f 67 72 61 6d | the the| program|
|000008a0| 20 6c 69 6e 65 20 77 69 | 74 68 0d 09 09 6c 69 6e | line wi|th...lin|
|000008b0| 65 20 6e 75 6d 62 65 72 | 20 4c 49 4e 45 4e 55 4d |e number| LINENUM|
|000008c0| 20 69 73 20 64 65 6c 65 | 74 65 64 2e 0d 09 0d 09 | is dele|ted.....|
|000008d0| 6c 69 73 74 0d 09 09 4c | 69 73 74 20 74 68 65 20 |list...L|ist the |
|000008e0| 77 68 6f 6c 65 20 70 72 | 6f 67 72 61 6d 2e 0d 09 |whole pr|ogram...|
|000008f0| 09 4c 69 6e 65 20 6e 75 | 6d 62 65 72 73 20 61 62 |.Line nu|mbers ab|
|00000900| 6f 76 65 20 39 39 39 39 | 39 39 39 39 39 20 77 69 |ove 9999|99999 wi|
|00000910| 6c 6c 20 6e 6f 74 20 6c | 69 73 74 2e 0d 0d 09 6c |ll not l|ist....l|
|00000920| 69 73 74 20 31 2d 33 0d | 09 09 4c 69 73 74 20 6c |ist 1-3.|..List l|
|00000930| 69 6e 65 73 20 31 20 74 | 6f 20 32 0d 0d 09 6c 69 |ines 1 t|o 2...li|
|00000940| 73 74 20 2d 32 0d 09 09 | 4c 69 73 74 20 6c 69 6e |st -2...|List lin|
|00000950| 65 73 20 75 70 20 74 6f | 20 31 0d 0d 09 6c 69 73 |es up to| 1...lis|
|00000960| 74 20 31 0d 09 09 4c 69 | 73 74 20 6c 69 6e 65 20 |t 1...Li|st line |
|00000970| 31 0d 09 0d 09 6c 69 73 | 74 20 32 2d 0d 09 09 4c |1....lis|t 2-...L|
|00000980| 69 73 74 20 6c 69 6e 65 | 73 20 66 72 6f 6d 20 32 |ist line|s from 2|
|00000990| 20 6f 6e 0d 0d 09 6d 65 | 72 67 65 20 53 54 52 49 | on...me|rge STRI|
|000009a0| 4e 47 45 58 50 52 0d 0d | 09 09 4c 6f 61 64 73 20 |NGEXPR..|..Loads |
|000009b0| 61 20 70 72 6f 67 72 61 | 6d 20 69 6e 74 6f 20 6d |a progra|m into m|
|000009c0| 65 6d 6f 72 79 2e 20 20 | 54 68 65 20 70 72 65 76 |emory. |The prev|
|000009d0| 69 6f 75 73 20 70 72 6f | 67 72 61 6d 0d 09 09 72 |ious pro|gram...r|
|000009e0| 65 6d 61 69 6e 73 20 69 | 6e 20 6d 65 6d 6f 72 79 |emains i|n memory|
|000009f0| 3b 20 76 61 72 69 61 62 | 6c 65 73 20 61 72 65 20 |; variab|les are |
|00000a00| 6e 6f 74 20 63 6c 65 61 | 72 65 64 2e 20 20 49 66 |not clea|red. If|
|00000a10| 20 61 0d 09 09 6c 69 6e | 65 20 65 78 69 73 74 73 | a...lin|e exists|
|00000a20| 20 69 6e 20 62 6f 74 68 | 20 70 72 6f 67 72 61 6d | in both| program|
|00000a30| 73 2c 20 74 68 65 20 6e | 65 77 20 6d 65 72 67 65 |s, the n|ew merge|
|00000a40| 64 20 6c 69 6e 65 0d 09 | 09 6f 76 65 72 77 72 69 |d line..|.overwri|
|00000a50| 74 65 73 20 74 68 65 20 | 6f 6c 64 20 6f 6e 65 2e |tes the |old one.|
|00000a60| 0d 0d 09 72 65 6e 75 6d | 20 53 54 52 49 4e 47 45 |...renum| STRINGE|
|00000a70| 58 50 52 20 56 41 4c 20 | 7b 20 2c 20 56 41 4c 20 |XPR VAL |{ , VAL |
|00000a80| 7b 20 2c 20 56 41 4c 20 | 7b 20 2c 20 56 41 4c 7d |{ , VAL |{ , VAL}|
|00000a90| 20 7d 20 7d 0d 0d 09 09 | 52 65 6e 75 6d 62 65 72 | } }....|Renumber|
|00000aa0| 20 70 72 6f 67 72 61 6d | 20 6c 69 6e 65 73 2e 20 | program| lines. |
|00000ab0| 20 42 79 20 64 65 66 61 | 75 6c 74 2c 20 74 68 65 | By defa|ult, the|
|00000ac0| 20 6e 65 77 20 73 65 71 | 75 65 6e 63 65 20 69 73 | new seq|uence is|
|00000ad0| 0d 09 09 31 30 2c 32 30 | 2c 33 30 2c 2e 2e 2e 20 |...10,20|,30,... |
|00000ae0| 54 68 65 20 66 69 72 73 | 74 20 61 72 67 75 6d 65 |The firs|t argume|
|00000af0| 6e 74 20 69 73 20 61 20 | 6e 65 77 20 69 6e 69 74 |nt is a |new init|
|00000b00| 69 61 6c 20 6c 69 6e 65 | 0d 09 09 6e 75 6d 62 65 |ial line|...numbe|
|00000b10| 72 3b 20 74 68 65 20 73 | 65 63 6f 6e 64 20 61 72 |r; the s|econd ar|
|00000b20| 67 75 6d 65 6e 74 20 69 | 73 20 74 68 65 20 69 6e |gument i|s the in|
|00000b30| 63 72 65 6d 65 6e 74 20 | 62 65 74 77 65 65 6e 0d |crement |between.|
|00000b40| 09 09 6c 69 6e 65 20 6e | 75 6d 62 65 72 73 2e 20 |..line n|umbers. |
|00000b50| 54 68 65 20 74 68 69 72 | 64 20 61 6e 64 20 66 6f |The thir|d and fo|
|00000b60| 75 72 74 68 20 61 72 67 | 75 6d 65 6e 74 73 2c 20 |urth arg|uments, |
|00000b70| 69 66 0d 09 09 70 72 65 | 73 65 6e 74 2c 20 73 70 |if...pre|sent, sp|
|00000b80| 65 63 69 66 79 20 61 20 | 6c 69 6d 69 74 69 6e 67 |ecify a |limiting|
|00000b90| 20 72 61 6e 67 65 20 6f | 66 20 6f 6c 64 20 6c 69 | range o|f old li|
|00000ba0| 6e 65 20 6e 75 6d 62 65 | 72 73 0d 09 09 74 6f 20 |ne numbe|rs...to |
|00000bb0| 72 65 6e 75 6d 62 65 72 | 2e 20 20 52 45 4e 55 4d |renumber|. RENUM|
|00000bc0| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 74 6f 20 | can be |used to |
|00000bd0| 6d 6f 76 65 20 6e 6f 6e | 2d 6f 76 65 72 6c 61 70 |move non|-overlap|
|00000be0| 70 69 6e 67 0d 09 09 62 | 6c 6f 63 6b 73 20 6f 66 |ping...b|locks of|
|00000bf0| 20 63 6f 64 65 2e 0d 09 | 20 0d 09 65 64 69 74 20 | code...| ..edit |
|00000c00| 4c 49 4e 45 4e 55 4d 0d | 0d 09 09 45 64 69 74 20 |LINENUM.|...Edit |
|00000c10| 61 20 73 69 6e 67 6c 65 | 20 6c 69 6e 65 2e 20 49 |a single| line. I|
|00000c20| 66 20 74 68 65 20 65 78 | 69 74 20 66 72 6f 6d 20 |f the ex|it from |
|00000c30| 74 68 65 20 65 64 69 74 | 20 69 73 20 76 69 61 20 |the edit| is via |
|00000c40| 61 0d 09 09 63 6e 74 72 | 6c 2d 63 20 74 68 65 6e |a...cntr|l-c then|
|00000c50| 20 64 6f 20 6e 6f 74 20 | 63 68 61 6e 67 65 20 74 | do not |change t|
|00000c60| 68 65 20 6c 69 6e 65 2e | 0d 09 09 09 69 09 69 6e |he line.|....i.in|
|00000c70| 73 65 72 74 20 74 69 6c | 6c 20 3c 72 65 74 75 72 |sert til|l <retur|
|00000c80| 6e 3e 0d 09 09 09 78 09 | 64 65 6c 65 74 65 20 6f |n>....x.|delete o|
|00000c90| 6e 65 20 63 68 61 72 0d | 09 09 09 41 09 61 70 70 |ne char.|...A.app|
|00000ca0| 65 6e 64 20 74 6f 20 65 | 6e 64 20 6f 66 20 6c 69 |end to e|nd of li|
|00000cb0| 6e 65 0d 0d 09 64 65 6c | 20 4c 49 4e 45 4e 55 4d |ne...del| LINENUM|
|00000cc0| 20 5b 20 2d 20 4c 49 4e | 45 4e 55 4d 20 5d 0d 0d | [ - LIN|ENUM ]..|
|00000cd0| 09 09 44 65 6c 65 74 65 | 20 61 20 6c 69 6e 65 20 |..Delete| a line |
|00000ce0| 6f 72 20 73 70 65 63 69 | 66 69 65 64 20 72 61 6e |or speci|fied ran|
|00000cf0| 67 65 20 6f 66 20 6c 69 | 6e 65 73 2e 20 49 66 20 |ge of li|nes. If |
|00000d00| 6e 6f 74 20 66 6f 75 6e | 64 0d 09 09 74 68 65 6e |not foun|d...then|
|00000d10| 20 6e 6f 20 6c 69 6e 65 | 73 20 77 69 6c 6c 20 62 | no line|s will b|
|00000d20| 65 20 64 65 6c 65 74 65 | 64 2e 0d 0d 09 65 78 69 |e delete|d....exi|
|00000d30| 74 0d 09 62 79 65 0d 09 | 71 75 69 74 0d 0d 09 09 |t..bye..|quit....|
|00000d40| 54 65 72 6d 69 6e 61 74 | 65 73 20 74 68 65 20 62 |Terminat|es the b|
|00000d50| 61 73 69 63 20 69 6e 74 | 65 72 70 72 65 74 65 72 |asic int|erpreter|
|00000d60| 2c 20 65 6e 64 69 6e 67 | 20 70 72 6f 67 72 61 6d |, ending| program|
|00000d70| 0d 09 09 65 78 65 63 75 | 74 69 6f 6e 20 61 6e 64 |...execu|tion and|
|00000d80| 20 63 6c 6f 73 69 6e 67 | 20 61 6c 6c 20 66 69 6c | closing| all fil|
|00000d90| 65 73 2e 0d 0d 0d 20 20 | 20 20 53 54 41 54 45 4d |es.... | STATEM|
|00000da0| 45 4e 54 53 0d 0d 09 7b | 20 6c 65 74 20 7d 20 56 |ENTS...{| let } V|
|00000db0| 41 52 20 3d 20 45 58 50 | 52 0d 0d 09 09 41 73 73 |AR = EXP|R....Ass|
|00000dc0| 69 67 6e 20 61 20 76 61 | 6c 75 65 20 74 6f 20 61 |ign a va|lue to a|
|00000dd0| 20 76 61 72 69 61 62 6c | 65 2e 20 20 56 61 72 69 | variabl|e. Vari|
|00000de0| 61 62 6c 65 20 6e 61 6d | 65 73 20 63 61 6e 20 62 |able nam|es can b|
|00000df0| 65 20 75 70 0d 09 09 74 | 6f 20 33 31 20 73 69 67 |e up...t|o 31 sig|
|00000e00| 6e 69 66 69 63 61 6e 74 | 20 63 68 61 72 61 63 74 |nificant| charact|
|00000e10| 65 72 73 2c 20 63 6f 6e | 73 69 73 74 69 6e 67 20 |ers, con|sisting |
|00000e20| 6f 66 20 6c 65 74 74 65 | 72 73 2c 0d 09 09 64 69 |of lette|rs,...di|
|00000e30| 67 69 74 73 2c 20 75 6e | 64 65 72 73 63 6f 72 65 |gits, un|derscore|
|00000e40| 73 2c 20 61 6e 64 20 61 | 6e 20 65 6e 64 69 6e 67 |s, and a|n ending|
|00000e50| 20 64 6f 6c 6c 61 72 20 | 73 69 67 6e 2e 0d 09 09 | dollar |sign....|
|00000e60| 56 61 72 69 61 62 6c 65 | 20 6e 61 6d 65 73 20 61 |Variable| names a|
|00000e70| 72 65 20 63 61 73 65 20 | 69 6e 73 65 6e 73 69 74 |re case |insensit|
|00000e80| 69 76 65 2e 20 20 56 61 | 72 69 61 62 6c 65 73 20 |ive. Va|riables |
|00000e90| 63 61 6e 0d 09 09 68 6f | 6c 64 20 72 65 61 6c 20 |can...ho|ld real |
|00000ea0| 6e 75 6d 62 65 72 73 20 | 28 49 45 45 45 20 64 6f |numbers |(IEEE do|
|00000eb0| 75 62 6c 65 29 20 6f 72 | 20 73 74 72 69 6e 67 73 |uble) or| strings|
|00000ec0| 20 6f 66 20 75 70 20 74 | 6f 20 32 35 34 0d 09 09 | of up t|o 254...|
|00000ed0| 63 68 61 72 61 63 74 65 | 72 73 2e 20 20 49 66 20 |characte|rs. If |
|00000ee0| 74 68 65 20 76 61 72 69 | 61 62 6c 65 20 6e 61 6d |the vari|able nam|
|00000ef0| 65 20 65 6e 64 73 20 77 | 69 74 68 20 61 20 22 24 |e ends w|ith a "$|
|00000f00| 22 20 69 74 0d 09 09 68 | 6f 6c 64 73 20 73 74 72 |" it...h|olds str|
|00000f10| 69 6e 67 73 2c 20 6f 74 | 68 65 72 77 69 73 65 20 |ings, ot|herwise |
|00000f20| 69 74 20 68 6f 6c 64 73 | 20 6e 75 6d 62 65 72 73 |it holds| numbers|
|00000f30| 2e 20 20 49 66 20 61 0d | 09 09 73 74 61 74 65 6d |. If a.|..statem|
|00000f40| 65 6e 74 20 73 74 61 72 | 74 73 20 77 69 74 68 20 |ent star|ts with |
|00000f50| 61 20 76 61 72 69 61 62 | 6c 65 20 6e 61 6d 65 20 |a variab|le name |
|00000f60| 74 68 65 6e 20 61 6e 20 | 69 6d 70 6c 69 65 64 0d |then an |implied.|
|00000f70| 09 09 4c 45 54 20 69 73 | 20 61 73 73 75 6d 65 64 |..LET is| assumed|
|00000f80| 2e 0d 0d 09 70 72 69 6e | 74 20 20 56 41 4c 20 7c |....prin|t VAL ||
|00000f90| 20 53 54 52 49 4e 47 56 | 41 4c 20 7b 20 5b 20 2c | STRINGV|AL { [ ,|
|00000fa0| 20 7c 20 3b 20 5d 20 56 | 41 4c 20 2e 2e 2e 20 7d | | ; ] V|AL ... }|
|00000fb0| 20 7b 20 3b 20 7d 0d 09 | 3f 20 20 20 20 20 20 56 | { ; }..|? V|
|00000fc0| 41 4c 20 7c 20 53 54 52 | 49 4e 47 56 41 4c 20 7b |AL | STR|INGVAL {|
|00000fd0| 20 5b 20 2c 20 7c 20 3b | 20 5d 20 56 41 4c 20 2e | [ , | ;| ] VAL .|
|00000fe0| 2e 2e 20 7d 20 7b 20 3b | 20 7d 0d 09 70 72 69 6e |.. } { ;| }..prin|
|00000ff0| 74 20 23 20 46 4e 55 4d | 2c 20 56 41 4c 20 2e 2e |t # FNUM|, VAL ..|
|00001000| 2e 0d 0d 09 09 54 68 69 | 73 20 63 6f 6d 6d 61 6e |.....Thi|s comman|
|00001010| 64 20 77 69 6c 6c 20 70 | 72 69 6e 74 20 69 74 73 |d will p|rint its|
|00001020| 20 70 61 72 61 6d 65 74 | 65 72 73 20 74 61 62 20 | paramet|ers tab |
|00001030| 64 65 6c 69 6d 69 74 65 | 64 2e 0d 09 09 49 66 20 |delimite|d....If |
|00001040| 61 20 73 65 6d 69 2d 63 | 6f 6c 6f 6e 20 69 73 20 |a semi-c|olon is |
|00001050| 75 73 65 64 20 62 65 74 | 77 65 65 6e 20 70 61 72 |used bet|ween par|
|00001060| 61 6d 65 74 65 72 73 20 | 74 68 65 6e 20 6e 6f 20 |ameters |then no |
|00001070| 74 61 62 0d 09 09 69 73 | 20 69 6e 73 65 72 74 65 |tab...is| inserte|
|00001080| 64 20 62 65 74 77 65 65 | 6e 20 74 68 65 20 70 61 |d betwee|n the pa|
|00001090| 72 61 6d 65 74 65 72 73 | 2e 20 20 54 68 65 20 70 |rameters|. The p|
|000010a0| 72 69 6e 74 0d 09 09 6f | 75 74 70 75 74 20 69 73 |rint...o|utput is|
|000010b0| 20 74 65 72 6d 69 6e 61 | 74 65 64 20 77 69 74 68 | termina|ted with|
|000010c0| 20 61 20 63 61 72 72 69 | 61 67 65 20 72 65 74 75 | a carri|age retu|
|000010d0| 72 6e 20 75 6e 6c 65 73 | 73 20 74 68 65 0d 09 09 |rn unles|s the...|
|000010e0| 70 61 72 61 6d 65 74 65 | 72 20 6c 69 73 74 20 65 |paramete|r list e|
|000010f0| 6e 64 73 20 77 69 74 68 | 20 61 20 73 65 6d 69 2d |nds with| a semi-|
|00001100| 63 6f 6c 6f 6e 2e 20 20 | 49 66 20 61 20 66 69 6c |colon. |If a fil|
|00001110| 65 0d 09 09 64 65 73 63 | 72 69 70 74 6f 72 20 69 |e...desc|riptor i|
|00001120| 73 20 67 69 76 65 6e 20 | 74 68 65 6e 20 6f 75 74 |s given |then out|
|00001130| 70 75 74 20 69 73 20 72 | 65 64 69 72 65 63 74 65 |put is r|edirecte|
|00001140| 64 20 74 6f 20 74 68 65 | 0d 09 09 67 69 76 65 6e |d to the|...given|
|00001150| 20 66 69 6c 65 2e 20 20 | 49 66 20 61 0d 09 09 0d | file. |If a....|
|00001160| 09 09 09 74 61 62 28 56 | 41 4c 29 3b 0d 09 09 09 |...tab(V|AL);....|
|00001170| 0d 09 09 69 73 20 66 6f | 75 6e 64 20 69 6e 20 61 |...is fo|und in a|
|00001180| 20 70 72 69 6e 74 20 73 | 74 61 74 65 6d 65 6e 74 | print s|tatement|
|00001190| 2c 20 74 68 65 6e 20 70 | 72 69 6e 74 20 6f 75 74 |, then p|rint out|
|000011a0| 70 75 74 20 77 69 6c 6c | 0d 09 09 73 6b 69 70 20 |put will|...skip |
|000011b0| 74 6f 20 74 68 65 20 68 | 6f 72 69 7a 6f 6e 74 61 |to the h|orizonta|
|000011c0| 6c 20 70 6f 73 69 74 69 | 6f 6e 20 73 70 65 63 69 |l positi|on speci|
|000011d0| 66 69 65 64 20 62 79 20 | 56 41 4c 2e 0d 0d 09 70 |fied by |VAL....p|
|000011e0| 72 69 6e 74 20 7b 20 23 | 20 46 4e 55 4d 2c 20 7d |rint { #| FNUM, }|
|000011f0| 20 75 73 69 6e 67 20 53 | 54 52 49 4e 47 56 41 4c | using S|TRINGVAL|
|00001200| 20 3b 20 56 41 52 20 7b | 20 5b 20 2c 20 7c 20 3b | ; VAR {| [ , | ;|
|00001210| 20 5d 20 56 41 52 20 2e | 2e 2e 20 7d 0d 09 0d 09 | ] VAR .|.. }....|
|00001220| 09 50 72 69 6e 74 73 20 | 66 6f 72 6d 61 74 74 65 |.Prints |formatte|
|00001230| 64 20 6e 75 6d 62 65 72 | 73 2e 20 20 4c 65 67 61 |d number|s. Lega|
|00001240| 6c 20 63 68 61 72 61 63 | 74 65 72 73 20 66 6f 72 |l charac|ters for|
|00001250| 20 74 68 65 0d 09 09 66 | 6f 72 6d 61 74 20 73 74 | the...f|ormat st|
|00001260| 72 69 6e 67 20 53 54 52 | 49 4e 47 56 41 4c 20 61 |ring STR|INGVAL a|
|00001270| 72 65 3a 20 2b 20 2a 20 | 24 20 23 20 2e 20 45 2b |re: + * |$ # . E+|
|00001280| 20 61 6e 64 20 74 72 61 | 69 6c 69 6e 67 0d 09 09 | and tra|iling...|
|00001290| 73 70 61 63 65 73 2e 0d | 09 09 0d 09 09 45 78 61 |spaces..|.....Exa|
|000012a0| 6d 70 6c 65 73 3a 0d 09 | 09 0d 09 09 09 70 72 69 |mples:..|.....pri|
|000012b0| 6e 74 20 75 73 69 6e 67 | 20 22 2a 2a 24 23 23 23 |nt using| "**$###|
|000012c0| 2e 23 23 22 3b 20 31 2e | 32 33 20 20 3a 27 20 2a |.##"; 1.|23 :' *|
|000012d0| 2a 2a 2a 24 31 2e 32 33 | 0d 09 09 09 70 72 69 6e |***$1.23|....prin|
|000012e0| 74 20 75 73 69 6e 67 20 | 22 23 23 23 2e 23 23 22 |t using |"###.##"|
|000012f0| 3b 20 32 2e 31 32 33 34 | 35 20 20 3a 27 20 20 20 |; 2.1234|5 :' |
|00001300| 32 2e 31 32 0d 09 09 09 | 70 72 69 6e 74 20 75 73 |2.12....|print us|
|00001310| 69 6e 67 20 22 23 2e 23 | 23 45 2b 23 23 22 3b 20 |ing "#.#|#E+##"; |
|00001320| 32 33 34 35 2e 36 20 3a | 27 20 20 20 32 2e 33 35 |2345.6 :|' 2.35|
|00001330| 45 2b 30 33 0d 09 09 09 | 0d 09 69 6e 70 75 74 20 |E+03....|..input |
|00001340| 20 53 54 52 49 4e 47 56 | 41 52 20 7c 20 56 41 52 | STRINGV|AR | VAR|
|00001350| 20 20 7b 20 2c 20 56 41 | 52 20 7d 0d 09 69 6e 70 | { , VA|R }..inp|
|00001360| 75 74 20 20 22 70 72 6f | 6d 70 74 22 3b 20 7b 20 |ut "pro|mpt"; { |
|00001370| 53 54 52 49 4e 47 56 41 | 52 20 7c 20 56 41 52 20 |STRINGVA|R | VAR |
|00001380| 20 7b 20 2c 20 56 41 52 | 20 7d 20 7d 0d 09 69 6e | { , VAR| } }..in|
|00001390| 70 75 74 20 20 7b 20 23 | 20 46 4e 55 4d 20 2c 20 |put { #| FNUM , |
|000013a0| 7d 20 7b 20 53 54 52 49 | 4e 47 56 41 52 20 7c 20 |} { STRI|NGVAR | |
|000013b0| 56 41 52 20 7b 20 2c 20 | 56 41 52 20 7d 20 7d 0d |VAR { , |VAR } }.|
|000013c0| 0d 09 09 49 6e 70 75 74 | 20 66 72 6f 6d 20 74 68 |...Input| from th|
|000013d0| 65 20 63 6f 6e 73 6f 6c | 65 20 6f 72 20 66 72 6f |e consol|e or fro|
|000013e0| 6d 20 74 68 65 20 66 69 | 6c 65 20 73 70 65 63 69 |m the fi|le speci|
|000013f0| 66 69 65 64 20 62 79 0d | 09 09 46 4e 55 4d 2e 20 |fied by.|..FNUM. |
|00001400| 49 66 20 74 68 65 20 69 | 6e 70 75 74 20 69 73 20 |If the i|nput is |
|00001410| 66 72 6f 6d 20 74 68 65 | 20 63 6f 6e 73 6f 6c 65 |from the| console|
|00001420| 20 74 68 65 6e 20 61 20 | 70 72 6f 6d 70 74 0d 09 | then a |prompt..|
|00001430| 09 73 74 72 69 6e 67 20 | 63 61 6e 20 6f 70 74 69 |.string |can opti|
|00001440| 6f 6e 61 6c 6c 79 20 62 | 65 20 70 72 69 6e 74 65 |onally b|e printe|
|00001450| 64 2e 0d 09 09 0d 09 09 | 2a 2a 2a 20 4e 4f 54 45 |d.......|*** NOTE|
|00001460| 20 2a 2a 2a 0d 09 09 0d | 09 09 41 6c 6c 20 69 6e | ***....|..All in|
|00001470| 70 75 74 20 74 6f 20 73 | 74 72 69 6e 67 20 76 61 |put to s|tring va|
|00001480| 72 69 61 62 6c 65 73 20 | 69 73 20 22 6c 69 6e 65 |riables |is "line|
|00001490| 20 69 6e 70 75 74 22 3b | 20 61 20 77 68 6f 6c 65 | input";| a whole|
|000014a0| 0d 09 09 69 6e 70 75 74 | 20 6c 69 6e 65 20 77 69 |...input| line wi|
|000014b0| 6c 6c 20 62 65 20 72 65 | 61 64 20 69 6e 74 6f 20 |ll be re|ad into |
|000014c0| 6f 6e 65 20 73 74 72 69 | 6e 67 20 76 61 72 69 61 |one stri|ng varia|
|000014d0| 62 6c 65 2e 20 20 54 68 | 65 0d 09 09 6e 75 6d 62 |ble. Th|e...numb|
|000014e0| 65 72 20 6f 66 20 63 6f | 6d 6d 61 20 73 65 70 65 |er of co|mma sepe|
|000014f0| 72 61 74 65 64 20 6e 75 | 6d 65 72 69 63 20 76 61 |rated nu|meric va|
|00001500| 6c 75 65 73 20 69 6e 20 | 74 68 65 20 69 6e 70 75 |lues in |the inpu|
|00001510| 74 0d 09 09 64 61 74 61 | 20 6d 75 73 74 20 62 65 |t...data| must be|
|00001520| 20 6c 65 73 73 20 74 68 | 61 6e 20 6f 72 20 65 71 | less th|an or eq|
|00001530| 75 61 6c 20 74 6f 20 74 | 68 65 20 6e 75 6d 62 65 |ual to t|he numbe|
|00001540| 72 20 6f 66 0d 09 09 6e | 75 6d 65 72 69 63 20 76 |r of...n|umeric v|
|00001550| 61 72 69 61 62 6c 65 73 | 20 69 6e 20 74 68 65 20 |ariables| in the |
|00001560| 49 4e 50 55 54 20 73 74 | 61 74 65 6d 65 6e 74 2e |INPUT st|atement.|
|00001570| 20 20 54 68 69 73 20 49 | 4e 50 55 54 0d 09 09 75 | This I|NPUT...u|
|00001580| 73 61 67 65 20 69 73 20 | 64 69 66 66 65 72 65 6e |sage is |differen|
|00001590| 74 20 66 72 6f 6d 20 6f | 74 68 65 72 20 76 65 72 |t from o|ther ver|
|000015a0| 73 69 6f 6e 73 20 42 61 | 73 69 63 2e 0d 0d 09 67 |sions Ba|sic....g|
|000015b0| 65 74 20 53 54 52 49 4e | 47 56 41 52 0d 09 0d 09 |et STRIN|GVAR....|
|000015c0| 09 47 65 74 73 20 6f 6e | 65 20 63 68 61 72 61 63 |.Gets on|e charac|
|000015d0| 74 65 72 20 66 72 6f 6d | 20 74 68 65 20 63 6f 6e |ter from| the con|
|000015e0| 73 6f 6c 65 20 6b 65 79 | 62 6f 61 72 64 2e 20 20 |sole key|board. |
|000015f0| 42 6c 6f 63 6b 69 6e 67 | 2e 0d 09 0d 09 66 70 75 |Blocking|.....fpu|
|00001600| 74 62 79 74 65 20 56 41 | 4c 2c 20 23 20 46 4e 55 |tbyte VA|L, # FNU|
|00001610| 4d 0d 09 0d 09 09 57 72 | 69 74 65 73 20 6f 6e 65 |M.....Wr|ites one|
|00001620| 20 62 79 74 65 20 74 6f | 20 74 68 65 20 66 69 6c | byte to| the fil|
|00001630| 65 20 73 70 65 63 69 66 | 69 65 64 20 62 79 20 46 |e specif|ied by F|
|00001640| 4e 55 4d 2e 0d 09 0d 09 | 67 65 74 20 23 20 46 4e |NUM.....|get # FN|
|00001650| 55 4d 2c 20 56 41 4c 2c | 20 54 59 50 45 44 2d 56 |UM, VAL,| TYPED-V|
|00001660| 41 52 0d 09 0d 09 09 52 | 65 61 64 73 20 6f 6e 65 |AR.....R|eads one|
|00001670| 20 72 65 63 6f 72 64 20 | 66 72 6f 6d 20 61 20 72 | record |from a r|
|00001680| 61 6e 64 6f 6d 20 61 63 | 63 65 73 73 20 66 69 6c |andom ac|cess fil|
|00001690| 65 20 69 6e 74 6f 20 56 | 41 52 2e 0d 09 0d 09 70 |e into V|AR.....p|
|000016a0| 75 74 20 23 20 46 4e 55 | 4d 2c 20 56 41 4c 2c 20 |ut # FNU|M, VAL, |
|000016b0| 54 59 50 45 44 2d 56 41 | 52 0d 09 0d 09 09 57 72 |TYPED-VA|R.....Wr|
|000016c0| 69 74 65 20 6f 6e 65 20 | 72 65 63 6f 72 64 20 74 |ite one |record t|
|000016d0| 6f 20 61 20 72 61 6e 64 | 6f 6d 20 61 63 63 65 73 |o a rand|om acces|
|000016e0| 73 20 66 69 6c 65 20 66 | 72 6f 6d 20 56 41 52 2e |s file f|rom VAR.|
|000016f0| 0d 09 0d 09 63 6c 73 0d | 09 09 43 6c 65 61 72 20 |....cls.|..Clear |
|00001700| 74 68 65 20 74 65 72 6d | 69 6e 61 6c 73 20 73 63 |the term|inals sc|
|00001710| 72 65 65 6e 2e 20 20 4c | 65 61 76 65 73 20 74 68 |reen. L|eaves th|
|00001720| 65 20 63 75 72 73 6f 72 | 20 69 6e 20 74 68 65 0d |e cursor| in the.|
|00001730| 09 09 75 70 70 65 72 20 | 6c 65 66 74 20 63 6f 72 |..upper |left cor|
|00001740| 6e 65 72 2e 20 20 46 6f | 72 20 41 70 70 6c 65 73 |ner. Fo|r Apples|
|00001750| 6f 66 74 20 42 41 53 49 | 43 20 66 61 6e 73 2c 20 |oft BASI|C fans, |
|00001760| 74 68 65 0d 09 09 22 68 | 6f 6d 65 22 20 63 6f 6d |the..."h|ome" com|
|00001770| 6d 61 6e 64 20 77 69 6c | 6c 20 61 6c 73 6f 20 64 |mand wil|l also d|
|00001780| 6f 20 74 68 69 73 2e 0d | 0d 09 65 6e 64 0d 0d 09 |o this..|..end...|
|00001790| 09 54 65 72 6d 69 6e 61 | 74 65 73 20 70 72 6f 67 |.Termina|tes prog|
|000017a0| 72 61 6d 20 65 78 65 63 | 75 74 69 6f 6e 20 61 6e |ram exec|ution an|
|000017b0| 64 20 72 65 74 75 72 6e | 73 20 74 6f 20 74 68 65 |d return|s to the|
|000017c0| 20 63 6f 6d 6d 61 6e 64 | 0d 09 09 70 72 6f 6d 70 | command|...promp|
|000017d0| 74 2e 20 20 4e 6f 74 20 | 72 65 71 75 69 72 65 64 |t. Not |required|
|000017e0| 2e 0d 0d 09 73 74 6f 70 | 0d 0d 09 09 53 74 6f 70 |....stop|....Stop|
|000017f0| 73 20 74 68 65 20 65 78 | 65 63 75 74 69 6f 6e 20 |s the ex|ecution |
|00001800| 6f 66 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 61 |of the p|rogram a|
|00001810| 6e 64 20 72 65 74 75 72 | 6e 73 20 74 6f 0d 09 09 |nd retur|ns to...|
|00001820| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 70 72 6f 6d |the comm|and prom|
|00001830| 70 74 2e 20 20 50 72 69 | 6e 74 73 20 61 20 22 42 |pt. Pri|nts a "B|
|00001840| 72 65 61 6b 2e 2e 2e 22 | 20 6d 65 73 73 61 67 65 |reak..."| message|
|00001850| 2e 0d 0d 09 69 66 20 45 | 58 50 52 20 74 68 65 6e |....if E|XPR then|
|00001860| 20 53 54 41 54 45 4d 45 | 4e 54 20 7b 20 3a 20 53 | STATEME|NT { : S|
|00001870| 54 41 54 45 4d 45 4e 54 | 20 7d 20 7b 20 3a 20 65 |TATEMENT| } { : e|
|00001880| 6c 73 65 20 53 54 41 54 | 45 4d 45 4e 54 20 7d 0d |lse STAT|EMENT }.|
|00001890| 09 69 66 20 45 58 50 52 | 20 74 68 65 6e 20 4c 49 |.if EXPR| then LI|
|000018a0| 4e 45 4e 55 4d 0d 09 69 | 66 20 45 58 50 52 0d 0d |NENUM..i|f EXPR..|
|000018b0| 09 09 54 68 65 20 49 46 | 20 73 74 61 74 65 6d 65 |..The IF| stateme|
|000018c0| 6e 74 2e 20 20 49 66 20 | 74 68 65 20 63 6f 6e 64 |nt. If |the cond|
|000018d0| 69 74 69 6f 6e 20 69 73 | 20 74 72 75 65 20 74 68 |ition is| true th|
|000018e0| 65 6e 20 74 68 65 0d 09 | 09 53 54 41 54 45 4d 45 |en the..|.STATEME|
|000018f0| 4e 54 53 20 61 66 74 65 | 72 20 74 68 65 20 54 48 |NTS afte|r the TH|
|00001900| 45 4e 20 61 72 65 20 65 | 78 65 63 75 74 65 64 20 |EN are e|xecuted |
|00001910| 61 6e 64 20 74 68 65 0d | 09 09 73 74 61 74 65 6d |and the.|..statem|
|00001920| 65 6e 74 73 20 61 66 74 | 65 72 20 74 68 65 20 45 |ents aft|er the E|
|00001930| 4c 53 45 20 61 72 65 20 | 73 6b 69 70 70 65 64 2e |LSE are |skipped.|
|00001940| 20 20 49 66 20 74 68 65 | 0d 09 09 63 6f 6e 64 69 | If the|...condi|
|00001950| 74 69 6f 6e 20 69 73 20 | 66 61 6c 73 65 20 74 68 |tion is |false th|
|00001960| 65 6e 20 74 68 65 20 73 | 74 61 74 65 6d 65 6e 74 |en the s|tatement|
|00001970| 73 20 61 66 74 65 72 20 | 74 68 65 20 22 65 6c 73 |s after |the "els|
|00001980| 65 22 0d 09 09 61 72 65 | 20 65 78 65 63 75 74 65 |e"...are| execute|
|00001990| 64 20 69 6e 73 74 65 61 | 64 2e 20 20 49 66 20 74 |d instea|d. If t|
|000019a0| 68 65 20 69 74 65 6d 20 | 61 66 74 65 72 20 22 74 |he item |after "t|
|000019b0| 68 65 6e 22 20 69 73 20 | 61 0d 09 09 6c 69 6e 65 |hen" is |a...line|
|000019c0| 20 6e 75 6d 62 65 72 20 | 74 68 65 6e 20 61 20 67 | number |then a g|
|000019d0| 6f 74 6f 20 69 73 20 65 | 78 65 63 75 74 65 64 2e |oto is e|xecuted.|
|000019e0| 0d 09 09 0d 09 09 49 66 | 20 74 68 65 20 63 6f 6e |......If| the con|
|000019f0| 64 69 74 69 6f 6e 20 69 | 73 20 74 72 75 65 20 61 |dition i|s true a|
|00001a00| 6e 64 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 54 |nd there| is no T|
|00001a10| 48 45 4e 20 6f 6e 20 74 | 68 65 0d 09 09 73 61 6d |HEN on t|he...sam|
|00001a20| 65 20 6c 69 6e 65 2c 20 | 73 74 61 74 65 6d 65 6e |e line, |statemen|
|00001a30| 74 73 20 61 72 65 20 65 | 78 65 63 75 74 65 64 20 |ts are e|xecuted |
|00001a40| 75 6e 74 69 6c 20 61 20 | 6c 69 6e 65 0d 09 09 77 |until a |line...w|
|00001a50| 69 74 68 20 61 6e 20 45 | 4e 44 49 46 20 69 73 20 |ith an E|NDIF is |
|00001a60| 66 6f 75 6e 64 2e 20 20 | 28 62 6c 6f 63 6b 20 49 |found. |(block I|
|00001a70| 46 28 29 20 2e 2e 2e 20 | 45 4e 44 49 46 29 0d 0d |F() ... |ENDIF)..|
|00001a80| 09 66 6f 72 20 56 41 52 | 20 3d 20 45 58 50 52 20 |.for VAR| = EXPR |
|00001a90| 74 6f 20 45 58 50 52 20 | 7b 20 73 74 65 70 20 45 |to EXPR |{ step E|
|00001aa0| 58 50 52 20 7d 0d 0d 09 | 09 42 65 67 69 6e 6e 69 |XPR }...|.Beginni|
|00001ab0| 6e 67 20 6f 66 20 61 20 | 46 4f 52 2d 4e 45 58 54 |ng of a |FOR-NEXT|
|00001ac0| 20 6c 6f 6f 70 2e 20 20 | 49 74 20 74 61 6b 65 73 | loop. |It takes|
|00001ad0| 20 61 20 73 74 61 72 74 | 69 6e 67 0d 09 09 76 61 | a start|ing...va|
|00001ae0| 6c 75 65 2c 20 61 20 6c | 69 6d 69 74 20 61 6e 64 |lue, a l|imit and|
|00001af0| 20 61 6e 20 6f 70 74 69 | 6f 6e 61 6c 20 73 74 65 | an opti|onal ste|
|00001b00| 70 20 61 72 67 75 6d 65 | 6e 74 2e 20 20 49 66 20 |p argume|nt. If |
|00001b10| 74 68 65 0d 09 09 73 74 | 65 70 20 76 61 6c 75 65 |the...st|ep value|
|00001b20| 20 69 73 20 6e 65 67 61 | 74 69 76 65 2c 20 74 68 | is nega|tive, th|
|00001b30| 65 20 76 61 72 69 61 62 | 6c 65 20 63 6f 75 6e 74 |e variab|le count|
|00001b40| 73 20 64 6f 77 6e 2e 20 | 20 54 68 65 0d 09 09 62 |s down. | The...b|
|00001b50| 6f 64 79 20 6f 66 20 74 | 68 65 20 6c 6f 6f 70 20 |ody of t|he loop |
|00001b60| 69 73 20 6e 6f 74 20 65 | 78 65 63 75 74 65 64 20 |is not e|xecuted |
|00001b70| 69 66 20 74 68 65 20 65 | 6e 64 20 63 6f 6e 64 69 |if the e|nd condi|
|00001b80| 74 69 6f 6e 0d 09 09 69 | 73 20 74 72 75 65 20 69 |tion...i|s true i|
|00001b90| 6e 69 74 69 61 6c 6c 79 | 2e 0d 0d 09 09 45 78 61 |nitially|.....Exa|
|00001ba0| 6d 70 6c 65 3a 0d 09 09 | 09 66 6f 72 20 69 3d 31 |mple:...|.for i=1|
|00001bb0| 20 74 6f 20 31 30 20 3a | 20 70 72 69 6e 74 20 69 | to 10 :| print i|
|00001bc0| 2c 20 3a 20 6e 65 78 74 | 20 69 0d 09 09 09 72 65 |, : next| i....re|
|00001bd0| 6d 20 70 72 69 6e 74 73 | 20 74 68 65 20 6e 75 6d |m prints| the num|
|00001be0| 62 65 72 73 20 66 72 6f | 6d 20 31 20 74 68 72 6f |bers fro|m 1 thro|
|00001bf0| 75 67 68 20 31 30 0d 0d | 09 6e 65 78 74 20 7b 20 |ugh 10..|.next { |
|00001c00| 56 41 52 20 7d 0d 0d 09 | 09 45 6e 64 20 6f 66 20 |VAR }...|.End of |
|00001c10| 61 20 46 4f 52 2d 4e 45 | 58 54 20 6c 6f 6f 70 2e |a FOR-NE|XT loop.|
|00001c20| 20 20 49 66 20 74 68 65 | 20 74 65 72 6d 69 6e 61 | If the| termina|
|00001c30| 74 69 6f 6e 20 63 6f 6e | 64 69 74 69 6f 6e 73 0d |tion con|ditions.|
|00001c40| 09 09 61 72 65 20 6d 65 | 74 20 74 68 65 6e 20 65 |..are me|t then e|
|00001c50| 78 65 63 75 74 69 6f 6e | 20 66 61 6c 6c 73 20 74 |xecution| falls t|
|00001c60| 68 72 6f 75 67 68 20 74 | 6f 20 74 68 65 20 66 6f |hrough t|o the fo|
|00001c70| 6c 6c 6f 77 69 6e 67 0d | 09 09 73 74 61 74 65 6d |llowing.|..statem|
|00001c80| 65 6e 74 2c 20 6f 74 68 | 65 72 77 69 73 65 20 65 |ent, oth|erwise e|
|00001c90| 78 65 63 75 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |xecution| returns|
|00001ca0| 20 74 6f 20 74 68 65 20 | 73 74 61 74 65 6d 65 6e | to the |statemen|
|00001cb0| 74 0d 09 09 66 6f 6c 6c | 6f 77 69 6e 67 20 74 68 |t...foll|owing th|
|00001cc0| 65 20 46 4f 52 20 73 74 | 61 74 65 6d 65 6e 74 20 |e FOR st|atement |
|00001cd0| 77 69 74 68 20 74 68 65 | 20 63 6f 72 72 65 73 70 |with the| corresp|
|00001ce0| 6f 6e 64 69 6e 67 0d 09 | 09 69 6e 64 65 78 20 76 |onding..|.index v|
|00001cf0| 61 72 69 61 62 6c 65 2e | 20 49 66 20 74 68 65 72 |ariable.| If ther|
|00001d00| 65 20 6e 6f 20 69 6e 64 | 65 78 20 76 61 72 69 61 |e no ind|ex varia|
|00001d10| 62 6c 65 20 70 61 72 61 | 6d 65 74 65 72 2c 0d 09 |ble para|meter,..|
|00001d20| 09 74 68 65 20 69 6e 6e | 65 72 6d 6f 73 74 20 46 |.the inn|ermost F|
|00001d30| 4f 52 20 6c 6f 6f 70 20 | 69 73 20 75 73 65 64 2e |OR loop |is used.|
|00001d40| 0d 0d 09 65 78 69 74 20 | 66 6f 72 0d 0d 09 09 45 |...exit |for....E|
|00001d50| 78 69 74 73 20 74 68 65 | 20 63 75 72 72 65 6e 74 |xits the| current|
|00001d60| 20 46 4f 52 2d 4e 45 58 | 54 20 6c 6f 6f 70 2e 0d | FOR-NEX|T loop..|
|00001d70| 09 09 0d 09 77 68 69 6c | 65 20 7b 20 45 58 50 52 |....whil|e { EXPR|
|00001d80| 20 7d 0d 0d 09 09 53 74 | 61 72 74 20 6f 66 20 61 | }....St|art of a|
|00001d90| 20 57 48 49 4c 45 20 6c | 6f 6f 70 2e 20 54 68 65 | WHILE l|oop. The|
|00001da0| 20 6c 6f 6f 70 20 69 73 | 20 72 65 70 65 61 74 65 | loop is| repeate|
|00001db0| 64 20 75 6e 74 69 6c 20 | 45 58 50 52 0d 09 09 69 |d until |EXPR...i|
|00001dc0| 73 20 66 61 6c 73 65 2e | 20 49 66 20 45 58 50 52 |s false.| If EXPR|
|00001dd0| 20 69 73 20 66 61 6c 73 | 65 20 61 74 20 6c 6f 6f | is fals|e at loo|
|00001de0| 70 20 65 6e 74 72 79 2c | 20 74 68 65 6e 20 74 68 |p entry,| then th|
|00001df0| 65 20 6c 6f 6f 70 0d 09 | 09 69 73 20 6e 6f 74 20 |e loop..|.is not |
|00001e00| 65 78 65 63 75 74 65 64 | 20 2e 20 41 20 57 48 49 |executed| . A WHI|
|00001e10| 4c 45 20 6c 6f 6f 70 20 | 6d 75 73 74 20 62 65 20 |LE loop |must be |
|00001e20| 74 65 72 6d 69 6e 61 74 | 65 64 20 62 79 20 61 0d |terminat|ed by a.|
|00001e30| 09 09 62 61 6c 61 6e 63 | 69 6e 67 20 57 45 4e 44 |..balanc|ing WEND|
|00001e40| 20 73 74 61 74 65 6d 65 | 6e 74 2e 0d 0d 09 77 65 | stateme|nt....we|
|00001e50| 6e 64 20 7b 20 45 58 50 | 52 20 7d 0d 0d 09 09 54 |nd { EXP|R }....T|
|00001e60| 65 72 6d 69 6e 61 74 69 | 6e 67 20 73 74 61 74 65 |erminati|ng state|
|00001e70| 6d 65 6e 74 20 6f 66 20 | 61 20 57 48 49 4c 45 20 |ment of |a WHILE |
|00001e80| 6c 6f 6f 70 2e 20 20 49 | 66 20 45 58 50 52 20 69 |loop. I|f EXPR i|
|00001e90| 73 20 74 72 75 65 0d 09 | 09 74 68 65 6e 20 65 78 |s true..|.then ex|
|00001ea0| 69 74 20 74 68 65 20 6c | 6f 6f 70 2e 20 20 4f 6e |it the l|oop. On|
|00001eb0| 6c 79 20 6f 6e 65 20 57 | 45 4e 44 20 69 73 20 61 |ly one W|END is a|
|00001ec0| 6c 6c 6f 77 65 64 20 66 | 6f 72 20 65 61 63 68 0d |llowed f|or each.|
|00001ed0| 09 09 57 48 49 4c 45 2e | 20 20 41 20 57 48 49 4c |..WHILE.| A WHIL|
|00001ee0| 45 2d 57 45 4e 44 20 6c | 6f 6f 70 20 77 69 74 68 |E-WEND l|oop with|
|00001ef0| 6f 75 74 20 61 20 63 6f | 6e 64 69 74 69 6f 6e 20 |out a co|ndition |
|00001f00| 77 69 6c 6c 20 6c 6f 6f | 70 0d 09 09 66 6f 72 65 |will loo|p...fore|
|00001f10| 76 65 72 2e 0d 0d 09 65 | 78 69 74 20 77 68 69 6c |ver....e|xit whil|
|00001f20| 65 0d 0d 09 09 45 78 69 | 74 73 20 74 68 65 20 63 |e....Exi|ts the c|
|00001f30| 75 72 72 65 6e 74 20 57 | 48 49 4c 45 2d 57 45 4e |urrent W|HILE-WEN|
|00001f40| 44 20 6c 6f 6f 70 2e 0d | 09 09 0d 09 67 6f 73 75 |D loop..|....gosu|
|00001f50| 62 20 4c 49 4e 45 4e 55 | 4d 0d 0d 09 09 54 72 61 |b LINENU|M....Tra|
|00001f60| 6e 73 66 65 72 20 63 6f | 6d 6d 61 6e 64 20 74 6f |nsfer co|mmand to|
|00001f70| 20 61 20 6c 69 6e 65 20 | 6e 75 6d 62 65 72 2e 20 | a line |number. |
|00001f80| 53 61 76 65 20 72 65 74 | 75 72 6e 20 61 64 64 72 |Save ret|urn addr|
|00001f90| 65 73 73 0d 09 09 73 6f | 20 74 68 61 74 20 74 68 |ess...so| that th|
|00001fa0| 65 20 70 72 6f 67 72 61 | 6d 20 63 61 6e 20 72 65 |e progra|m can re|
|00001fb0| 73 75 6d 65 20 65 78 65 | 63 75 74 69 6f 6e 20 61 |sume exe|cution a|
|00001fc0| 74 20 74 68 65 0d 09 09 | 73 74 61 74 65 6d 65 6e |t the...|statemen|
|00001fd0| 74 20 61 66 74 65 72 20 | 74 68 65 20 22 67 6f 73 |t after |the "gos|
|00001fe0| 75 62 22 20 63 6f 6d 6d | 61 6e 64 2e 20 20 54 68 |ub" comm|and. Th|
|00001ff0| 65 20 72 65 63 75 72 73 | 69 6f 6e 0d 09 09 64 65 |e recurs|ion...de|
|00002000| 70 74 68 20 69 73 20 6c | 69 6d 69 74 65 64 20 6f |pth is l|imited o|
|00002010| 6e 6c 79 20 62 79 20 61 | 76 61 69 6c 61 62 6c 65 |nly by a|vailable|
|00002020| 20 6d 65 6d 6f 72 79 2e | 0d 0d 09 72 65 74 75 72 | memory.|...retur|
|00002030| 6e 0d 0d 09 09 52 65 74 | 75 72 6e 73 20 66 72 6f |n....Ret|urns fro|
|00002040| 6d 20 74 68 65 20 6d 6f | 73 74 20 72 65 63 65 6e |m the mo|st recen|
|00002050| 74 6c 79 20 61 63 74 69 | 76 61 74 65 64 20 73 75 |tly acti|vated su|
|00002060| 62 72 6f 75 74 69 6e 65 | 0d 09 09 63 61 6c 6c 20 |broutine|...call |
|00002070| 28 77 68 69 63 68 20 6d | 75 73 74 20 68 61 76 65 |(which m|ust have|
|00002080| 20 62 65 65 6e 20 63 61 | 6c 6c 65 64 20 62 79 20 | been ca|lled by |
|00002090| 47 4f 53 55 42 29 2e 0d | 0d 09 67 6f 74 6f 20 4c |GOSUB)..|..goto L|
|000020a0| 49 4e 45 4e 55 4d 0d 0d | 09 09 54 68 69 73 20 73 |INENUM..|..This s|
|000020b0| 74 61 74 65 6d 65 6e 74 | 20 77 69 6c 6c 20 74 72 |tatement| will tr|
|000020c0| 61 6e 73 66 65 72 20 63 | 6f 6e 74 72 6f 6c 20 74 |ansfer c|ontrol t|
|000020d0| 6f 20 74 68 65 20 6c 69 | 6e 65 20 6e 75 6d 62 65 |o the li|ne numbe|
|000020e0| 72 0d 09 09 73 70 65 63 | 69 66 69 65 64 2e 20 20 |r...spec|ified. |
|000020f0| 49 66 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 69 |If the p|rogram i|
|00002100| 73 20 6e 6f 74 20 72 75 | 6e 6e 69 6e 67 2c 20 74 |s not ru|nning, t|
|00002110| 68 65 6e 20 74 68 69 73 | 0d 09 09 63 6f 6d 6d 61 |hen this|...comma|
|00002120| 6e 64 20 77 69 6c 6c 20 | 62 65 67 69 6e 20 65 78 |nd will |begin ex|
|00002130| 65 63 75 74 69 6f 6e 20 | 61 74 20 74 68 65 20 73 |ecution |at the s|
|00002140| 70 65 63 69 66 69 65 64 | 20 6c 69 6e 65 0d 09 09 |pecified| line...|
|00002150| 77 69 74 68 6f 75 74 20 | 63 6c 65 61 72 69 6e 67 |without |clearing|
|00002160| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 73 2e 20 | the var|iables. |
|00002170| 20 41 6e 20 22 55 6e 64 | 65 66 69 6e 65 64 20 6c | An "Und|efined l|
|00002180| 69 6e 65 22 0d 09 09 65 | 72 72 6f 72 20 77 69 6c |ine"...e|rror wil|
|00002190| 6c 20 6f 63 63 75 72 20 | 69 66 20 4c 49 4e 45 4e |l occur |if LINEN|
|000021a0| 55 4d 20 64 6f 65 73 6e | 27 74 20 65 78 69 73 74 |UM doesn|'t exist|
|000021b0| 20 69 6e 20 74 68 65 0d | 09 09 70 72 6f 67 72 61 | in the.|..progra|
|000021c0| 6d 2e 0d 0d 09 6f 6e 20 | 45 58 50 52 20 20 20 67 |m....on |EXPR g|
|000021d0| 6f 74 6f 20 20 4c 49 4e | 45 4e 55 4d 20 7b 20 2c |oto LIN|ENUM { ,|
|000021e0| 20 4c 49 4e 45 4e 55 4d | 20 2e 2e 2e 20 7d 0d 09 | LINENUM| ... }..|
|000021f0| 6f 6e 20 45 58 50 52 20 | 20 20 67 6f 73 75 62 20 |on EXPR | gosub |
|00002200| 4c 49 4e 45 4e 55 4d 20 | 7b 20 2c 20 4c 49 4e 45 |LINENUM |{ , LINE|
|00002210| 4e 55 4d 20 2e 2e 2e 20 | 7d 0d 09 09 54 68 69 73 |NUM ... |}...This|
|00002220| 20 63 6f 6d 6d 61 6e 64 | 20 77 69 6c 6c 20 65 78 | command| will ex|
|00002230| 65 63 75 74 65 20 65 69 | 74 68 65 72 20 61 20 67 |ecute ei|ther a g|
|00002240| 6f 74 6f 20 6f 72 20 61 | 20 67 6f 73 75 62 20 74 |oto or a| gosub t|
|00002250| 6f 0d 09 09 74 68 65 20 | 73 70 65 63 69 66 69 65 |o...the |specifie|
|00002260| 64 20 6c 69 6e 65 20 6e | 75 6d 62 65 72 20 69 6e |d line n|umber in|
|00002270| 64 65 78 65 64 20 62 79 | 20 74 68 65 20 76 61 6c |dexed by| the val|
|00002280| 75 65 20 6f 66 20 45 58 | 50 52 2e 0d 09 09 49 66 |ue of EX|PR....If|
|00002290| 20 45 58 50 52 20 69 73 | 20 6c 61 72 67 65 72 20 | EXPR is| larger |
|000022a0| 74 68 61 6e 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |than the| number |
|000022b0| 6f 66 20 4c 49 4e 45 4e | 55 4d 73 2c 20 74 68 65 |of LINEN|UMs, the|
|000022c0| 6e 0d 09 09 63 6f 6e 74 | 72 6f 6c 20 70 61 73 73 |n...cont|rol pass|
|000022d0| 65 73 20 74 6f 20 74 68 | 65 20 6e 65 78 74 20 73 |es to th|e next s|
|000022e0| 74 61 74 65 6d 65 6e 74 | 2e 0d 09 09 0d 09 6f 6e |tatement|......on|
|000022f0| 20 65 72 72 6f 72 20 20 | 67 6f 74 6f 20 20 4c 49 | error |goto LI|
|00002300| 4e 45 4e 55 4d 0d 0d 09 | 09 49 66 20 74 68 65 20 |NENUM...|.If the |
|00002310| 65 72 72 6f 72 20 66 6f | 72 6d 20 69 73 20 75 73 |error fo|rm is us|
|00002320| 65 64 2c 20 6f 6e 6c 79 | 20 6f 6e 65 20 6c 69 6e |ed, only| one lin|
|00002330| 65 6e 75 6d 62 65 72 20 | 69 73 0d 09 09 61 6c 6c |enumber |is...all|
|00002340| 6f 77 65 64 2e 20 20 4c | 49 4e 45 4e 55 4d 20 69 |owed. L|INENUM i|
|00002350| 73 20 74 68 65 20 6c 69 | 6e 65 20 74 6f 20 77 68 |s the li|ne to wh|
|00002360| 69 63 68 20 63 6f 6e 74 | 72 6f 6c 20 69 73 0d 09 |ich cont|rol is..|
|00002370| 09 74 72 61 6e 73 66 65 | 72 72 65 64 20 69 66 20 |.transfe|rred if |
|00002380| 61 6e 20 65 72 72 6f 72 | 20 6f 63 63 75 72 73 2e |an error| occurs.|
|00002390| 20 20 41 20 47 4f 54 4f | 20 6f 72 20 43 4f 4e 54 | A GOTO| or CONT|
|000023a0| 0d 09 09 73 74 61 74 65 | 6d 65 6e 74 20 63 61 6e |...state|ment can|
|000023b0| 20 62 65 20 75 73 65 64 | 20 74 6f 20 72 65 73 75 | be used| to resu|
|000023c0| 6d 65 20 65 78 65 63 75 | 74 69 6f 6e 2e 20 20 41 |me execu|tion. A|
|000023d0| 6e 20 65 72 72 6f 72 0d | 09 09 69 6e 73 69 64 65 |n error.|..inside|
|000023e0| 20 61 20 6e 61 6d 65 64 | 20 53 55 42 20 73 75 62 | a named| SUB sub|
|000023f0| 72 6f 75 74 69 6e 65 20 | 63 61 6e 6e 6f 74 20 62 |routine |cannot b|
|00002400| 65 20 72 65 73 75 6d 65 | 64 20 66 72 6f 6d 0d 09 |e resume|d from..|
|00002410| 09 6f 72 20 43 4f 4e 54 | 69 6e 75 65 64 2e 0d 0d |.or CONT|inued...|
|00002420| 09 73 75 62 20 4e 41 4d | 45 20 28 20 56 41 52 20 |.sub NAM|E ( VAR |
|00002430| 7b 20 2c 20 56 41 52 20 | 2e 2e 2e 20 7d 20 7d 0d |{ , VAR |... } }.|
|00002440| 0d 09 09 53 75 62 72 6f | 75 74 69 6e 65 20 65 6e |...Subro|utine en|
|00002450| 74 72 79 2e 20 20 4d 61 | 79 20 62 65 20 63 61 6c |try. Ma|y be cal|
|00002460| 6c 65 64 20 62 79 20 61 | 20 43 41 4c 4c 20 73 74 |led by a| CALL st|
|00002470| 61 74 65 6d 65 6e 74 20 | 6f 72 0d 09 09 62 79 20 |atement |or...by |
|00002480| 4e 41 4d 45 2e 20 41 20 | 53 55 42 20 73 75 62 72 |NAME. A |SUB subr|
|00002490| 6f 75 74 69 6e 65 20 6d | 75 73 74 20 62 65 20 65 |outine m|ust be e|
|000024a0| 78 69 74 65 64 20 62 79 | 20 61 20 52 45 54 55 52 |xited by| a RETUR|
|000024b0| 4e 20 6f 72 0d 09 09 45 | 4e 44 20 53 55 42 20 73 |N or...E|ND SUB s|
|000024c0| 74 61 74 65 6d 65 6e 74 | 2e 20 20 54 68 65 72 65 |tatement|. There|
|000024d0| 20 73 68 6f 75 6c 64 20 | 62 65 20 6f 6e 6c 79 20 | should |be only |
|000024e0| 6f 6e 65 20 52 45 54 55 | 52 4e 20 6f 72 0d 09 09 |one RETU|RN or...|
|000024f0| 45 4e 44 20 53 55 42 20 | 73 74 61 74 65 6d 65 6e |END SUB |statemen|
|00002500| 74 20 70 65 72 20 53 55 | 42 20 64 65 66 69 6e 69 |t per SU|B defini|
|00002510| 74 69 6f 6e 2e 20 20 54 | 68 65 20 76 61 72 69 61 |tion. T|he varia|
|00002520| 62 6c 65 73 20 69 6e 0d | 09 09 74 68 65 20 56 41 |bles in.|..the VA|
|00002530| 52 20 6c 69 73 74 20 62 | 65 63 6f 6d 65 20 6c 6f |R list b|ecome lo|
|00002540| 63 61 6c 20 76 61 72 69 | 61 62 6c 65 73 2e 20 53 |cal vari|ables. S|
|00002550| 74 72 69 6e 67 20 61 6e | 64 20 6e 75 6d 65 72 69 |tring an|d numeri|
|00002560| 63 0d 09 09 61 72 67 75 | 6d 65 6e 74 73 20 61 72 |c...argu|ments ar|
|00002570| 65 20 70 61 73 73 65 64 | 20 62 79 20 76 61 6c 75 |e passed| by valu|
|00002580| 65 3b 20 61 72 72 61 79 | 20 61 72 67 75 6d 65 6e |e; array| argumen|
|00002590| 74 73 20 6d 75 73 74 20 | 62 65 0d 09 09 70 72 65 |ts must |be...pre|
|000025a0| 2d 64 69 6d 65 6e 73 69 | 6f 6e 65 64 20 61 6e 64 |-dimensi|oned and|
|000025b0| 20 61 72 65 20 70 61 73 | 73 65 64 20 62 79 20 72 | are pas|sed by r|
|000025c0| 65 66 65 72 65 6e 63 65 | 2e 0d 09 09 0d 09 09 45 |eference|.......E|
|000025d0| 78 61 6d 70 6c 65 3a 0d | 09 09 09 31 31 30 20 20 |xample:.|...110 |
|000025e0| 78 20 3d 20 66 6f 6f 20 | 28 37 2c 20 6a 29 20 20 |x = foo |(7, j) |
|000025f0| 3a 20 72 65 6d 20 50 61 | 73 73 20 37 20 61 6e 64 |: rem Pa|ss 7 and|
|00002600| 20 6a 20 62 79 20 76 61 | 6c 75 65 2e 0d 09 09 09 | j by va|lue.....|
|00002610| 2e 2e 2e 0d 09 09 09 32 | 30 30 30 20 73 75 62 20 |.......2|000 sub |
|00002620| 66 6f 6f 20 28 78 2c 79 | 2c 7a 29 20 3a 20 72 65 |foo (x,y|,z) : re|
|00002630| 6d 20 7a 20 69 73 20 61 | 20 6c 6f 63 61 6c 20 76 |m z is a| local v|
|00002640| 61 72 69 61 62 6c 65 0d | 09 09 09 32 30 31 30 20 |ariable.|...2010 |
|00002650| 20 20 70 72 69 6e 74 20 | 78 20 20 20 20 20 20 20 | print |x |
|00002660| 3a 20 72 65 6d 20 70 72 | 69 6e 74 73 20 37 0d 09 |: rem pr|ints 7..|
|00002670| 09 09 2e 2e 2e 0d 09 09 | 09 32 30 38 30 20 20 20 |........|.2080 |
|00002680| 66 6f 6f 20 3d 20 79 2b | 31 20 20 20 20 20 3a 20 |foo = y+|1 : |
|00002690| 72 65 6d 20 72 65 74 75 | 72 6e 20 76 61 6c 75 65 |rem retu|rn value|
|000026a0| 0d 09 09 09 32 30 39 30 | 20 65 6e 64 20 73 75 62 |....2090| end sub|
|000026b0| 0d 09 09 0d 09 09 53 75 | 62 72 6f 75 74 69 6e 65 |......Su|broutine|
|000026c0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 20 6d 61 79 | definit|ions may|
|000026d0| 20 6e 6f 74 20 62 65 20 | 6e 65 73 74 65 64 2e 0d | not be |nested..|
|000026e0| 0d 0d 09 73 65 6c 65 63 | 74 20 63 61 73 65 20 45 |...selec|t case E|
|000026f0| 58 50 52 0d 09 0d 09 09 | 4d 75 6c 74 69 2d 77 61 |XPR.....|Multi-wa|
|00002700| 79 20 62 72 61 6e 63 68 | 2e 20 20 45 78 65 63 75 |y branch|. Execu|
|00002710| 74 65 73 20 74 68 65 20 | 73 74 61 74 65 6d 65 6e |tes the |statemen|
|00002720| 74 73 20 61 66 74 65 72 | 0d 09 09 74 68 65 20 43 |ts after|...the C|
|00002730| 41 53 45 20 73 74 61 74 | 65 6d 65 6e 74 20 77 68 |ASE stat|ement wh|
|00002740| 69 63 68 20 6d 61 74 63 | 68 65 73 20 74 68 65 20 |ich matc|hes the |
|00002750| 53 45 4c 45 43 54 20 43 | 41 53 45 0d 09 09 65 78 |SELECT C|ASE...ex|
|00002760| 70 72 65 73 73 69 6f 6e | 2c 20 74 68 65 6e 20 73 |pression|, then s|
|00002770| 6b 69 70 73 20 74 6f 20 | 74 68 65 20 45 4e 44 20 |kips to |the END |
|00002780| 53 45 4c 45 43 54 20 73 | 74 61 74 65 6d 65 6e 74 |SELECT s|tatement|
|00002790| 2e 0d 09 09 49 66 20 74 | 68 65 72 65 20 69 73 20 |....If t|here is |
|000027a0| 6e 6f 20 6d 61 74 63 68 | 2c 20 61 6e 64 20 61 20 |no match|, and a |
|000027b0| 43 41 53 45 20 45 4c 53 | 45 20 73 74 61 74 65 6d |CASE ELS|E statem|
|000027c0| 65 6e 74 20 69 73 0d 09 | 09 70 72 65 73 65 6e 74 |ent is..|.present|
|000027d0| 2c 20 74 68 65 6e 20 65 | 78 65 63 75 74 69 6f 6e |, then e|xecution|
|000027e0| 20 64 65 66 61 75 6c 74 | 73 20 74 6f 20 74 68 65 | default|s to the|
|000027f0| 20 73 74 61 74 65 6d 65 | 6e 74 73 0d 09 09 66 6f | stateme|nts...fo|
|00002800| 6c 6c 6f 77 69 6e 67 20 | 74 68 65 20 43 41 53 45 |llowing |the CASE|
|00002810| 20 45 4c 53 45 2e 0d 09 | 09 0d 09 09 45 78 61 6d | ELSE...|....Exam|
|00002820| 70 6c 65 3a 0d 09 09 09 | 32 30 30 20 73 65 6c 65 |ple:....|200 sele|
|00002830| 63 74 20 63 61 73 65 20 | 78 0d 09 09 09 32 31 30 |ct case |x....210|
|00002840| 20 20 20 63 61 73 65 20 | 32 0d 09 09 09 2e 2e 2e | case |2.......|
|00002850| 0d 09 09 09 32 33 30 20 | 20 20 63 61 73 65 20 33 |....230 | case 3|
|00002860| 2c 20 34 0d 09 09 09 2e | 2e 2e 0d 09 09 09 32 37 |, 4.....|......27|
|00002870| 30 20 20 20 63 61 73 65 | 20 65 6c 73 65 0d 09 09 |0 case| else...|
|00002880| 09 2e 2e 2e 0d 09 09 09 | 32 39 30 20 65 6e 64 20 |........|290 end |
|00002890| 73 65 6c 65 63 74 0d 0d | 0d 09 64 69 6d 20 56 41 |select..|..dim VA|
|000028a0| 52 28 20 64 20 7b 20 2c | 20 64 20 7b 20 2c 20 64 |R( d { ,| d { , d|
|000028b0| 20 7d 20 7d 20 29 20 7b | 20 2c 20 56 41 52 28 20 | } } ) {| , VAR( |
|000028c0| 64 20 7b 20 2c 20 64 20 | 7b 20 2c 20 64 20 7d 20 |d { , d |{ , d } |
|000028d0| 7d 20 29 20 7d 0d 0d 09 | 09 44 69 6d 65 6e 73 69 |} ) }...|.Dimensi|
|000028e0| 6f 6e 20 61 6e 20 61 72 | 72 61 79 20 6f 72 20 6c |on an ar|ray or l|
|000028f0| 69 73 74 20 6f 66 20 61 | 72 72 61 79 73 20 28 73 |ist of a|rrays (s|
|00002900| 74 72 69 6e 67 20 6f 72 | 20 6e 75 6d 65 72 69 63 |tring or| numeric|
|00002910| 29 2e 20 0d 09 09 41 20 | 6d 61 78 69 6d 75 6d 20 |). ...A |maximum |
|00002920| 6f 66 20 34 20 64 69 6d | 65 6e 73 69 6f 6e 73 20 |of 4 dim|ensions |
|00002930| 63 61 6e 20 62 65 20 75 | 73 65 64 2e 20 54 68 65 |can be u|sed. The|
|00002940| 20 6d 61 78 69 6d 75 6d | 0d 09 09 64 69 6d 65 6e | maximum|...dimen|
|00002950| 73 69 6f 6e 20 73 69 7a | 65 20 69 73 20 6c 69 6d |sion siz|e is lim|
|00002960| 69 74 65 64 20 62 79 20 | 61 76 61 69 6c 61 62 6c |ited by |availabl|
|00002970| 65 20 6d 65 6d 6f 72 79 | 2e 20 4c 65 67 61 6c 0d |e memory|. Legal.|
|00002980| 09 09 61 72 72 61 79 20 | 73 75 62 73 63 72 69 70 |..array |subscrip|
|00002990| 74 73 20 61 72 65 20 66 | 72 6f 6d 20 30 20 75 70 |ts are f|rom 0 up|
|000029a0| 20 61 6e 64 20 69 6e 63 | 6c 75 64 69 6e 67 20 74 | and inc|luding t|
|000029b0| 68 65 0d 09 09 64 69 6d | 65 6e 73 69 6f 6e 20 73 |he...dim|ension s|
|000029c0| 70 65 63 69 66 69 65 64 | 3b 20 64 2b 31 20 65 6c |pecified|; d+1 el|
|000029d0| 65 6d 65 6e 74 73 20 61 | 72 65 20 61 6c 6c 6f 63 |ements a|re alloc|
|000029e0| 61 74 65 64 2e 20 20 41 | 6c 6c 0d 09 09 61 72 72 |ated. A|ll...arr|
|000029f0| 61 79 73 20 6d 75 73 74 | 20 62 65 20 64 69 6d 65 |ays must| be dime|
|00002a00| 6e 73 69 6f 6e 65 64 20 | 62 65 66 6f 72 65 20 75 |nsioned |before u|
|00002a10| 73 65 2e 0d 09 09 0d 09 | 09 45 78 61 6d 70 6c 65 |se......|.Example|
|00002a20| 3a 0d 09 09 09 31 30 20 | 64 69 6d 20 61 28 31 30 |:....10 |dim a(10|
|00002a30| 29 0d 09 09 09 32 30 20 | 66 6f 72 20 69 3d 30 20 |)....20 |for i=0 |
|00002a40| 74 6f 20 31 30 0d 09 09 | 09 33 30 20 20 20 61 28 |to 10...|.30 a(|
|00002a50| 69 29 20 3d 20 69 5e 32 | 0d 09 09 09 34 30 20 6e |i) = i^2|....40 n|
|00002a60| 65 78 74 20 69 0d 09 09 | 09 35 30 20 70 72 69 6e |ext i...|.50 prin|
|00002a70| 74 20 61 28 35 29 20 3a | 20 72 65 6d 20 73 68 6f |t a(5) :| rem sho|
|00002a80| 75 6c 64 20 70 72 69 6e | 74 20 32 35 0d 0d 09 64 |uld prin|t 25...d|
|00002a90| 61 74 61 20 49 54 45 4d | 20 7b 20 2c 20 49 54 45 |ata ITEM| { , ITE|
|00002aa0| 4d 20 7d 0d 0d 09 09 44 | 41 54 41 20 73 74 61 74 |M }....D|ATA stat|
|00002ab0| 65 6d 65 6e 74 73 20 63 | 6f 6e 74 61 69 6e 20 74 |ements c|ontain t|
|00002ac0| 68 65 20 64 61 74 61 20 | 75 73 65 64 20 69 6e 20 |he data |used in |
|00002ad0| 74 68 65 20 52 45 41 44 | 0d 09 09 73 74 61 74 65 |the READ|...state|
|00002ae0| 6d 65 6e 74 73 2e 20 49 | 74 65 6d 73 20 6d 75 73 |ments. I|tems mus|
|00002af0| 74 20 62 65 20 73 65 70 | 61 72 61 74 65 64 20 62 |t be sep|arated b|
|00002b00| 79 20 63 6f 6d 6d 61 73 | 2e 20 20 54 68 65 0d 09 |y commas|. The..|
|00002b10| 09 69 74 65 6d 73 20 6d | 61 79 20 62 65 20 65 69 |.items m|ay be ei|
|00002b20| 74 68 65 72 20 6e 75 6d | 65 72 69 63 20 6f 72 20 |ther num|eric or |
|00002b30| 73 74 72 69 6e 67 20 65 | 78 70 72 65 73 73 69 6f |string e|xpressio|
|00002b40| 6e 73 2c 0d 09 09 63 6f | 72 72 65 73 70 6f 6e 64 |ns,...co|rrespond|
|00002b50| 69 6e 67 20 74 6f 20 74 | 68 65 20 74 79 70 65 20 |ing to t|he type |
|00002b60| 6f 66 20 76 61 72 69 61 | 62 6c 65 20 62 65 69 6e |of varia|ble bein|
|00002b70| 67 20 72 65 61 64 2e 0d | 09 09 52 65 61 64 69 6e |g read..|..Readin|
|00002b80| 67 20 74 68 65 20 77 72 | 6f 6e 67 20 6b 69 6e 64 |g the wr|ong kind|
|00002b90| 20 6f 66 20 6f 62 6a 65 | 63 74 20 70 72 6f 64 75 | of obje|ct produ|
|00002ba0| 63 65 73 20 61 20 22 54 | 79 70 65 0d 09 09 6d 69 |ces a "T|ype...mi|
|00002bb0| 73 6d 61 74 63 68 22 20 | 65 72 72 6f 72 2e 20 20 |smatch" |error. |
|00002bc0| 53 74 72 69 6e 67 73 20 | 6d 75 73 74 20 62 65 20 |Strings |must be |
|00002bd0| 65 6e 63 61 70 73 75 6c | 61 74 65 64 20 77 69 74 |encapsul|ated wit|
|00002be0| 68 0d 09 09 71 75 6f 74 | 65 20 6d 61 72 6b 73 2e |h...quot|e marks.|
|00002bf0| 0d 0d 09 72 65 61 64 20 | 56 41 52 20 7b 20 2c 20 |...read |VAR { , |
|00002c00| 56 41 52 20 7d 0d 0d 09 | 09 52 65 61 64 20 64 61 |VAR }...|.Read da|
|00002c10| 74 61 20 66 72 6f 6d 20 | 74 68 65 20 44 41 54 41 |ta from |the DATA|
|00002c20| 20 73 74 61 74 65 6d 65 | 6e 74 73 20 63 6f 6e 74 | stateme|nts cont|
|00002c30| 61 69 6e 65 64 20 69 6e | 20 74 68 65 0d 09 09 70 |ained in| the...p|
|00002c40| 72 6f 67 72 61 6d 2e 20 | 4c 69 73 74 20 69 74 65 |rogram. |List ite|
|00002c50| 6d 73 20 63 61 6e 20 62 | 65 20 65 69 74 68 65 72 |ms can b|e either|
|00002c60| 20 73 74 72 69 6e 67 20 | 6f 72 20 6e 75 6d 65 72 | string |or numer|
|00002c70| 69 63 0d 09 09 76 61 72 | 69 61 62 6c 65 73 2e 20 |ic...var|iables. |
|00002c80| 52 65 61 64 69 6e 67 20 | 70 61 73 74 20 74 68 65 |Reading |past the|
|00002c90| 20 65 6e 64 20 74 68 65 | 20 6c 61 73 74 20 44 41 | end the| last DA|
|00002ca0| 54 41 20 73 74 61 74 65 | 6d 65 6e 74 0d 09 09 67 |TA state|ment...g|
|00002cb0| 65 6e 65 72 61 74 65 73 | 20 61 6e 20 65 72 72 6f |enerates| an erro|
|00002cc0| 72 2e 0d 0d 09 72 65 73 | 74 6f 72 65 20 7b 20 4c |r....res|tore { L|
|00002cd0| 49 4e 45 4e 55 4d 20 7d | 0d 0d 09 09 54 68 65 20 |INENUM }|....The |
|00002ce0| 52 45 53 54 4f 52 45 20 | 73 74 61 74 65 6d 65 6e |RESTORE |statemen|
|00002cf0| 74 20 63 61 75 73 65 73 | 20 74 68 65 20 6e 65 78 |t causes| the nex|
|00002d00| 74 20 52 45 41 44 20 74 | 6f 20 75 73 65 20 74 68 |t READ t|o use th|
|00002d10| 65 0d 09 09 66 69 72 73 | 74 20 44 41 54 41 20 73 |e...firs|t DATA s|
|00002d20| 74 61 74 65 6d 65 6e 74 | 20 69 6e 20 74 68 65 20 |tatement| in the |
|00002d30| 70 72 6f 67 72 61 6d 2e | 20 20 49 66 20 61 20 4c |program.| If a L|
|00002d40| 49 4e 45 4e 55 4d 20 69 | 73 0d 09 09 67 69 76 65 |INENUM i|s...give|
|00002d50| 6e 20 74 68 65 6e 20 74 | 68 65 20 44 41 54 41 20 |n then t|he DATA |
|00002d60| 73 74 61 74 65 6d 65 6e | 74 20 6f 6e 20 6f 72 20 |statemen|t on or |
|00002d70| 61 66 74 65 72 20 74 68 | 61 74 0d 09 09 70 61 72 |after th|at...par|
|00002d80| 74 69 63 75 6c 61 72 20 | 6c 69 6e 65 20 69 73 20 |ticular |line is |
|00002d90| 75 73 65 64 20 6e 65 78 | 74 2e 0d 0d 09 72 65 6d |used nex|t....rem|
|00002da0| 20 6f 72 20 22 60 22 0d | 0d 09 09 41 20 72 65 6d | or "`".|...A rem|
|00002db0| 61 72 6b 20 6f 72 20 63 | 6f 6d 6d 65 6e 74 20 73 |ark or c|omment s|
|00002dc0| 74 61 74 65 6d 65 6e 74 | 2e 20 20 49 67 6e 6f 72 |tatement|. Ignor|
|00002dd0| 65 64 20 62 79 20 74 68 | 65 20 70 72 6f 67 72 61 |ed by th|e progra|
|00002de0| 6d 0d 09 09 64 75 72 69 | 6e 67 20 65 78 65 63 75 |m...duri|ng execu|
|00002df0| 74 69 6f 6e 2c 20 68 6f | 77 65 76 65 72 20 61 20 |tion, ho|wever a |
|00002e00| 52 45 4d 20 73 74 61 74 | 65 6d 65 6e 74 20 63 61 |REM stat|ement ca|
|00002e10| 6e 20 62 65 20 74 68 65 | 0d 09 09 74 61 72 67 65 |n be the|...targe|
|00002e20| 74 20 6f 66 20 61 20 47 | 4f 54 4f 20 6f 72 20 47 |t of a G|OTO or G|
|00002e30| 4f 53 55 42 2e 0d 0d 09 | 6f 70 65 6e 20 53 54 52 |OSUB....|open STR|
|00002e40| 49 4e 47 45 58 50 52 20 | 66 6f 72 20 7b 20 69 6e |INGEXPR |for { in|
|00002e50| 70 75 74 7c 6f 75 74 70 | 75 74 7c 61 70 70 65 6e |put|outp|ut|appen|
|00002e60| 64 20 7d 20 61 73 20 23 | 20 46 4e 55 4d 0d 0d 09 |d } as #| FNUM...|
|00002e70| 09 4f 70 65 6e 20 61 20 | 66 69 6c 65 2e 20 54 68 |.Open a |file. Th|
|00002e80| 65 20 7b 20 69 6e 70 75 | 74 7c 6f 75 74 70 75 74 |e { inpu|t|output|
|00002e90| 7c 61 70 70 65 6e 64 20 | 7d 20 70 61 72 61 6d 65 ||append |} parame|
|00002ea0| 74 65 72 0d 09 09 73 70 | 65 63 69 66 69 65 73 20 |ter...sp|ecifies |
|00002eb0| 77 68 65 74 68 65 72 20 | 74 68 65 20 66 69 6c 65 |whether |the file|
|00002ec0| 20 69 73 20 74 6f 20 62 | 65 20 72 65 61 64 2c 20 | is to b|e read, |
|00002ed0| 77 72 69 74 74 65 6e 20 | 6f 72 0d 09 09 61 70 70 |written |or...app|
|00002ee0| 65 6e 64 65 64 2e 20 20 | 49 66 20 53 54 52 49 4e |ended. |If STRIN|
|00002ef0| 47 45 58 50 52 20 69 73 | 20 22 73 74 64 69 6e 22 |GEXPR is| "stdin"|
|00002f00| 20 66 6f 72 20 69 6e 70 | 75 74 20 6f 72 0d 09 09 | for inp|ut or...|
|00002f10| 22 73 74 64 6f 75 74 22 | 20 66 6f 72 20 6f 75 74 |"stdout"| for out|
|00002f20| 70 75 74 20 74 68 65 6e | 20 74 68 65 20 63 6f 6e |put then| the con|
|00002f30| 73 6f 6c 65 20 77 69 6c | 6c 20 62 65 20 75 73 65 |sole wil|l be use|
|00002f40| 64 0d 09 09 69 6e 73 74 | 65 61 64 20 6f 66 20 61 |d...inst|ead of a|
|00002f50| 20 66 69 6c 65 2e 20 20 | 41 20 22 66 69 6c 65 20 | file. |A "file |
|00002f60| 6e 6f 74 20 66 6f 75 6e | 64 22 20 65 72 72 6f 72 |not foun|d" error|
|00002f70| 20 77 69 6c 6c 0d 09 09 | 6f 63 63 75 72 20 69 66 | will...|occur if|
|00002f80| 20 61 20 6e 6f 6e 2d 65 | 78 69 73 74 61 6e 74 20 | a non-e|xistant |
|00002f90| 66 69 6c 65 20 69 73 20 | 73 70 65 63 69 66 69 65 |file is |specifie|
|00002fa0| 64 20 69 6e 20 61 6e 20 | 4f 50 45 4e 0d 09 09 66 |d in an |OPEN...f|
|00002fb0| 6f 72 20 69 6e 70 75 74 | 20 73 74 61 74 65 6d 65 |or input| stateme|
|00002fc0| 6e 74 2e 20 20 46 4e 55 | 4d 20 6d 75 73 74 20 62 |nt. FNU|M must b|
|00002fd0| 65 20 61 6e 20 69 6e 74 | 65 67 65 72 20 76 61 6c |e an int|eger val|
|00002fe0| 75 65 0d 09 09 62 65 74 | 77 65 65 6e 20 30 20 61 |ue...bet|ween 0 a|
|00002ff0| 6e 64 20 38 2e 0d 0d 09 | 6f 70 65 6e 20 53 54 52 |nd 8....|open STR|
|00003000| 49 4e 47 45 58 50 52 20 | 66 6f 72 20 72 61 6e 64 |INGEXPR |for rand|
|00003010| 6f 6d 20 61 73 20 23 20 | 46 4e 55 4d 20 6c 65 6e |om as # |FNUM len|
|00003020| 20 3d 20 56 41 4c 0d 0d | 09 09 4f 70 65 6e 73 20 | = VAL..|..Opens |
|00003030| 61 20 72 61 6e 64 6f 6d | 20 61 63 63 65 73 73 20 |a random| access |
|00003040| 66 69 6c 65 2e 20 20 4f | 6e 6c 79 20 47 45 54 20 |file. O|nly GET |
|00003050| 61 6e 64 20 50 55 54 20 | 73 74 61 74 65 6d 65 6e |and PUT |statemen|
|00003060| 74 0d 09 09 61 72 65 20 | 61 6c 6c 6f 77 65 64 20 |t...are |allowed |
|00003070| 74 6f 20 72 65 61 64 20 | 61 6e 64 20 77 72 69 74 |to read |and writ|
|00003080| 65 20 72 61 6e 64 6f 6d | 20 61 63 63 65 73 73 20 |e random| access |
|00003090| 66 69 6c 65 73 2e 0d 0d | 09 6f 70 65 6e 20 2e 2e |files...|.open ..|
|000030a0| 2e 20 65 6c 73 65 20 67 | 6f 74 6f 20 4c 49 4e 45 |. else g|oto LINE|
|000030b0| 4e 55 4d 0d 0d 09 09 53 | 65 65 20 4f 50 45 4e 20 |NUM....S|ee OPEN |
|000030c0| 63 6f 6d 6d 61 6e 64 2e | 0d 09 09 4c 49 4e 45 4e |command.|...LINEN|
|000030d0| 55 4d 20 69 73 20 74 68 | 65 20 6c 69 6e 65 20 74 |UM is th|e line t|
|000030e0| 6f 20 77 68 69 63 68 20 | 63 6f 6e 74 72 6f 6c 20 |o which |control |
|000030f0| 69 73 20 74 72 61 6e 73 | 66 65 72 72 65 64 20 69 |is trans|ferred i|
|00003100| 66 0d 09 09 61 6e 20 65 | 72 72 6f 72 20 69 6e 20 |f...an e|rror in |
|00003110| 6f 70 65 6e 69 6e 67 20 | 61 20 66 69 6c 65 20 6f |opening |a file o|
|00003120| 63 63 75 72 73 2e 20 20 | 54 68 65 20 76 61 72 69 |ccurs. |The vari|
|00003130| 61 62 6c 65 20 45 52 4c | 20 69 73 0d 09 09 73 65 |able ERL| is...se|
|00003140| 74 20 74 6f 20 74 68 65 | 20 6c 69 6e 65 20 6e 75 |t to the| line nu|
|00003150| 6d 62 65 72 20 6f 6e 20 | 77 68 69 63 68 20 74 68 |mber on |which th|
|00003160| 65 20 66 69 6c 65 20 6f | 70 65 6e 20 65 72 72 6f |e file o|pen erro|
|00003170| 72 0d 09 09 6f 63 63 75 | 72 65 64 2e 0d 0d 09 63 |r...occu|red....c|
|00003180| 6c 6f 73 65 20 23 20 46 | 4e 55 4d 0d 0d 09 09 43 |lose # F|NUM....C|
|00003190| 6c 6f 73 65 20 61 20 66 | 69 6c 65 2e 20 52 65 6c |lose a f|ile. Rel|
|000031a0| 65 61 73 65 73 20 74 68 | 65 20 66 69 6c 65 20 64 |eases th|e file d|
|000031b0| 65 73 63 72 69 70 74 6f | 72 20 61 6e 64 20 66 6c |escripto|r and fl|
|000031c0| 75 73 68 65 73 0d 09 09 | 6f 75 74 20 61 6c 6c 20 |ushes...|out all |
|000031d0| 73 74 6f 72 65 64 20 64 | 61 74 61 2e 0d 0d 09 64 |stored d|ata....d|
|000031e0| 65 66 20 66 6e 4e 41 4d | 45 20 28 20 56 41 52 20 |ef fnNAM|E ( VAR |
|000031f0| 7b 20 2c 20 56 41 52 20 | 7d 20 29 20 3d 20 45 58 |{ , VAR |} ) = EX|
|00003200| 50 52 0d 0d 09 09 44 65 | 66 69 6e 65 20 61 20 75 |PR....De|fine a u|
|00003210| 73 65 72 20 64 65 66 69 | 6e 61 62 6c 65 20 66 75 |ser defi|nable fu|
|00003220| 6e 63 74 69 6f 6e 2e 20 | 20 4f 62 73 6f 6c 65 74 |nction. | Obsolet|
|00003230| 65 2e 0d 09 09 0d 09 09 | 45 78 61 6d 70 6c 65 3a |e.......|Example:|
|00003240| 0d 09 09 09 31 30 20 64 | 65 66 20 66 6e 70 6c 75 |....10 d|ef fnplu|
|00003250| 73 28 78 2c 79 29 20 3d | 20 78 2b 79 0d 09 09 09 |s(x,y) =| x+y....|
|00003260| 32 30 20 70 72 69 6e 74 | 20 66 6e 70 6c 75 73 28 |20 print| fnplus(|
|00003270| 33 2c 35 29 20 3a 20 72 | 65 6d 20 70 72 69 6e 74 |3,5) : r|em print|
|00003280| 73 20 38 0d 0d 09 6d 61 | 74 20 41 52 52 41 59 2d |s 8...ma|t ARRAY-|
|00003290| 56 41 52 20 3d 20 45 58 | 50 52 0d 09 0d 09 09 46 |VAR = EX|PR.....F|
|000032a0| 69 6c 6c 73 20 61 20 31 | 20 6f 72 20 32 20 64 69 |ills a 1| or 2 di|
|000032b0| 6d 65 6e 73 69 6f 6e 61 | 6c 20 61 72 72 61 79 20 |mensiona|l array |
|000032c0| 77 69 74 68 20 61 20 63 | 6f 6e 73 74 61 6e 74 0d |with a c|onstant.|
|000032d0| 09 09 76 61 6c 75 65 20 | 67 69 76 65 6e 20 62 79 |..value |given by|
|000032e0| 20 45 58 50 52 2e 0d 0d | 09 6d 61 74 20 41 52 52 | EXPR...|.mat ARR|
|000032f0| 41 59 2d 56 41 52 20 3d | 20 41 52 52 41 59 2d 56 |AY-VAR =| ARRAY-V|
|00003300| 41 52 0d 09 0d 09 09 43 | 6f 70 79 73 20 61 20 32 |AR.....C|opys a 2|
|00003310| 20 64 69 6d 65 6e 73 69 | 6f 6e 61 6c 20 61 72 72 | dimensi|onal arr|
|00003320| 61 79 2e 20 20 54 68 65 | 20 64 69 6d 65 6e 73 69 |ay. The| dimensi|
|00003330| 6f 6e 73 0d 09 09 6d 75 | 73 74 20 6d 61 74 63 68 |ons...mu|st match|
|00003340| 2e 0d 0d 09 6d 61 74 20 | 41 52 52 41 59 2d 56 41 |....mat |ARRAY-VA|
|00003350| 52 20 3d 20 74 72 61 6e | 73 70 6f 73 65 20 41 52 |R = tran|spose AR|
|00003360| 52 41 59 2d 56 41 52 0d | 09 0d 09 09 54 72 61 6e |RAY-VAR.|....Tran|
|00003370| 73 70 6f 73 65 73 20 61 | 20 32 20 64 69 6d 65 6e |sposes a| 2 dimen|
|00003380| 73 69 6f 6e 61 6c 20 61 | 72 72 61 79 2e 20 20 54 |sional a|rray. T|
|00003390| 68 65 20 64 69 6d 65 6e | 73 69 6f 6e 73 20 6f 66 |he dimen|sions of|
|000033a0| 0d 09 09 74 68 65 20 66 | 69 72 73 74 20 61 72 72 |...the f|irst arr|
|000033b0| 61 79 20 6d 75 73 74 20 | 63 6f 72 72 65 73 70 6f |ay must |correspo|
|000033c0| 6e 64 20 74 6f 20 74 68 | 65 20 74 72 61 6e 73 70 |nd to th|e transp|
|000033d0| 6f 73 65 20 6f 66 0d 09 | 09 74 68 65 20 64 69 6d |ose of..|.the dim|
|000033e0| 65 6e 73 69 6f 6e 73 20 | 6f 66 20 74 68 65 20 73 |ensions |of the s|
|000033f0| 65 63 6f 6e 64 20 61 72 | 72 61 79 2e 0d 0d 09 6d |econd ar|ray....m|
|00003400| 61 74 20 41 52 52 41 59 | 2d 56 41 52 20 3d 20 41 |at ARRAY|-VAR = A|
|00003410| 52 52 41 59 2d 56 41 52 | 20 7b 20 2b 20 7c 20 2a |RRAY-VAR| { + | *|
|00003420| 20 7d 20 7b 20 45 58 50 | 52 20 7c 20 41 52 52 41 | } { EXP|R | ARRA|
|00003430| 59 2d 56 41 52 20 7d 0d | 09 0d 09 09 41 64 64 73 |Y-VAR }.|....Adds|
|00003440| 20 6f 72 20 6d 75 6c 74 | 69 70 6c 69 65 73 20 61 | or mult|iplies a|
|00003450| 20 32 20 64 69 6d 65 6e | 73 69 6f 6e 61 6c 20 61 | 2 dimen|sional a|
|00003460| 72 72 61 79 20 62 79 20 | 65 69 74 68 65 72 0d 09 |rray by |either..|
|00003470| 09 61 6e 20 65 78 70 72 | 65 73 73 69 6f 6e 20 6f |.an expr|ession o|
|00003480| 72 20 61 6e 6f 74 68 65 | 72 20 61 72 72 61 79 2e |r anothe|r array.|
|00003490| 20 20 54 68 65 20 64 69 | 6d 65 6e 73 69 6f 6e 73 | The di|mensions|
|000034a0| 20 6d 75 73 74 0d 09 09 | 62 65 20 61 70 70 72 6f | must...|be appro|
|000034b0| 70 72 69 61 74 65 20 66 | 6f 72 20 6d 61 74 72 69 |priate f|or matri|
|000034c0| 78 20 61 64 64 69 74 69 | 6f 6e 20 6f 72 20 6d 61 |x additi|on or ma|
|000034d0| 74 72 69 78 0d 09 09 6d | 75 6c 74 69 70 6c 69 63 |trix...m|ultiplic|
|000034e0| 61 74 69 6f 6e 2e 0d 0d | 09 6d 61 74 20 6f 72 69 |ation...|.mat ori|
|000034f0| 67 69 6e 20 7b 20 30 20 | 7c 20 31 20 7d 0d 09 0d |gin { 0 || 1 }...|
|00003500| 09 09 53 65 74 73 20 74 | 68 65 20 6d 61 74 72 69 |..Sets t|he matri|
|00003510| 78 20 69 6e 64 65 78 20 | 6f 72 69 67 69 6e 20 74 |x index |origin t|
|00003520| 6f 20 65 69 74 68 65 72 | 20 30 20 6f 72 20 31 20 |o either| 0 or 1 |
|00003530| 66 6f 72 20 61 6c 6c 0d | 09 09 4d 41 54 20 73 74 |for all.|..MAT st|
|00003540| 61 74 65 6d 65 6e 74 73 | 2c 20 69 6e 63 6c 75 64 |atements|, includ|
|00003550| 69 6e 67 20 66 69 6c 6c | 2e 20 20 44 65 66 61 75 |ing fill|. Defau|
|00003560| 6c 74 73 20 74 6f 20 30 | 2e 0d 0d 09 74 79 70 65 |lts to 0|....type|
|00003570| 20 43 4c 41 53 53 4e 41 | 4d 45 0d 09 0d 09 09 43 | CLASSNA|ME.....C|
|00003580| 72 65 61 74 65 73 20 61 | 20 73 74 72 75 63 74 75 |reates a| structu|
|00003590| 72 65 20 64 65 66 69 6e | 69 74 69 6f 6e 20 74 79 |re defin|ition ty|
|000035a0| 70 65 2e 20 20 45 61 63 | 68 20 66 69 65 6c 64 0d |pe. Eac|h field.|
|000035b0| 09 09 72 65 71 75 69 72 | 65 73 20 61 20 73 65 70 |..requir|es a sep|
|000035c0| 61 72 61 74 65 20 6c 69 | 6e 65 2e 20 20 4c 65 67 |arate li|ne. Leg|
|000035d0| 61 6c 20 74 79 70 65 73 | 20 61 72 65 20 73 74 72 |al types| are str|
|000035e0| 69 6e 67 2c 0d 09 09 69 | 6e 74 65 67 65 72 2c 20 |ing,...i|nteger, |
|000035f0| 6c 6f 6e 67 69 6e 74 20 | 61 6e 64 20 64 6f 75 62 |longint |and doub|
|00003600| 6c 65 2e 20 20 54 68 65 | 20 64 65 66 69 6e 69 74 |le. The| definit|
|00003610| 69 6f 6e 20 6d 75 73 74 | 0d 09 09 63 6f 6e 63 6c |ion must|...concl|
|00003620| 75 64 65 20 77 69 74 68 | 20 61 6e 20 45 4e 44 20 |ude with| an END |
|00003630| 54 59 50 45 20 73 74 61 | 74 65 6d 65 6e 74 2e 20 |TYPE sta|tement. |
|00003640| 20 55 73 65 20 74 68 65 | 0d 09 09 44 49 4d 20 41 | Use the|...DIM A|
|00003650| 53 20 4e 45 57 20 73 74 | 61 74 65 6d 65 6e 74 20 |S NEW st|atement |
|00003660| 74 6f 20 63 72 65 61 74 | 65 20 72 65 63 6f 72 64 |to creat|e record|
|00003670| 73 20 63 6f 6e 74 61 69 | 6e 69 6e 67 0d 09 09 74 |s contai|ning...t|
|00003680| 68 65 20 73 74 72 75 63 | 74 75 72 65 20 73 70 65 |he struc|ture spe|
|00003690| 63 69 66 69 65 64 20 62 | 79 20 61 20 54 59 50 45 |cified b|y a TYPE|
|000036a0| 20 73 74 61 74 65 6d 65 | 6e 74 2e 0d 09 09 0d 09 | stateme|nt......|
|000036b0| 09 45 78 61 6d 70 6c 65 | 3a 0d 09 09 09 33 30 30 |.Example|:....300|
|000036c0| 20 74 79 70 65 20 70 65 | 72 73 6f 6e 0d 09 09 09 | type pe|rson....|
|000036d0| 33 31 30 20 20 20 6e 61 | 6d 65 20 61 73 20 73 74 |310 na|me as st|
|000036e0| 72 69 6e 67 20 2a 20 33 | 32 20 3a 20 72 65 6d 20 |ring * 3|2 : rem |
|000036f0| 3d 20 33 31 20 63 68 61 | 72 73 20 6c 65 6e 67 74 |= 31 cha|rs lengt|
|00003700| 68 0d 09 09 09 33 32 30 | 20 20 20 61 67 65 20 61 |h....320| age a|
|00003710| 73 20 69 6e 74 65 67 65 | 72 09 20 20 3a 20 72 65 |s intege|r. : re|
|00003720| 6d 20 20 32 20 62 79 74 | 65 20 69 6e 74 65 67 65 |m 2 byt|e intege|
|00003730| 72 73 0d 09 09 09 33 33 | 30 20 20 20 77 65 69 67 |rs....33|0 weig|
|00003740| 68 74 20 61 73 20 64 6f | 75 62 6c 65 09 20 20 3a |ht as do|uble. :|
|00003750| 20 72 65 6d 20 20 38 20 | 62 79 74 65 20 64 6f 75 | rem 8 |byte dou|
|00003760| 62 6c 65 73 0d 09 09 09 | 33 34 30 20 65 6e 64 20 |bles....|340 end |
|00003770| 74 79 70 65 0d 09 09 09 | 34 30 30 20 64 69 6d 20 |type....|400 dim |
|00003780| 66 72 69 65 6e 64 31 20 | 61 73 20 6e 65 77 20 70 |friend1 |as new p|
|00003790| 65 72 73 6f 6e 0d 09 09 | 09 34 31 30 20 66 72 69 |erson...|.410 fri|
|000037a0| 65 6e 64 31 2e 6e 61 6d | 65 20 3d 20 22 4d 61 72 |end1.nam|e = "Mar|
|000037b0| 6b 22 20 3a 20 66 72 69 | 65 6e 64 31 2e 61 67 65 |k" : fri|end1.age|
|000037c0| 20 3d 20 31 33 0d 09 09 | 09 34 32 30 20 70 72 69 | = 13...|.420 pri|
|000037d0| 6e 74 20 66 72 69 65 6e | 64 31 2e 6e 61 6d 65 2c |nt frien|d1.name,|
|000037e0| 20 66 72 69 65 6e 64 31 | 2e 61 67 65 0d 0d 0d 09 | friend1|.age....|
|000037f0| 63 6c 61 73 73 20 43 4c | 41 53 53 4e 41 4d 45 20 |class CL|ASSNAME |
|00003800| 7b 20 65 78 74 65 6e 64 | 73 20 53 55 50 45 52 43 |{ extend|s SUPERC|
|00003810| 4c 41 53 53 4e 41 4d 45 | 20 7d 0d 09 0d 09 09 43 |LASSNAME| }.....C|
|00003820| 72 65 61 74 65 73 20 61 | 20 63 6c 61 73 73 20 64 |reates a| class d|
|00003830| 65 66 69 6e 69 74 69 6f | 6e 2e 20 20 43 6c 61 73 |efinitio|n. Clas|
|00003840| 73 20 64 65 66 69 6e 69 | 74 69 6f 6e 73 20 63 61 |s defini|tions ca|
|00003850| 6e 20 74 68 65 6e 0d 09 | 09 62 65 20 75 73 65 64 |n then..|.be used|
|00003860| 20 74 6f 20 63 72 65 61 | 74 65 20 6f 62 6a 65 63 | to crea|te objec|
|00003870| 74 73 20 77 69 74 68 20 | 6d 65 6d 62 65 72 20 66 |ts with |member f|
|00003880| 75 6e 63 74 69 6f 6e 73 | 20 28 61 6c 73 6f 0d 09 |unctions| (also..|
|00003890| 09 63 61 6c 6c 65 64 20 | 6d 65 74 68 6f 64 73 2e |.called |methods.|
|000038a0| 29 20 20 43 6c 61 73 73 | 65 73 20 69 6e 68 65 72 |) Class|es inher|
|000038b0| 69 74 20 6d 65 6d 62 65 | 72 73 20 66 72 6f 6d 0d |it membe|rs from.|
|000038c0| 09 09 73 75 70 65 72 63 | 6c 61 73 73 65 73 20 28 |..superc|lasses (|
|000038d0| 73 69 6e 67 6c 65 20 69 | 6e 68 65 72 69 74 61 6e |single i|nheritan|
|000038e0| 63 65 2e 29 0d 09 09 0d | 09 09 45 78 61 6d 70 6c |ce.)....|..Exampl|
|000038f0| 65 3a 0d 09 09 43 4c 41 | 53 53 20 62 61 72 0d 09 |e:...CLA|SS bar..|
|00003900| 09 20 20 79 20 41 53 20 | 69 6e 74 65 67 65 72 0d |. y AS |integer.|
|00003910| 09 09 20 20 7a 20 41 53 | 20 50 52 49 56 41 54 45 |.. z AS| PRIVATE|
|00003920| 20 64 6f 75 62 6c 65 09 | 27 20 70 72 69 76 61 74 | double.|' privat|
|00003930| 65 20 64 61 74 61 0d 09 | 09 20 20 73 20 41 53 20 |e data..|. s AS |
|00003940| 50 55 42 4c 49 43 20 73 | 74 72 69 6e 67 09 27 20 |PUBLIC s|tring.' |
|00003950| 70 75 62 6c 69 63 20 6b | 65 79 77 6f 72 64 20 6f |public k|eyword o|
|00003960| 70 74 69 6f 6e 61 6c 0d | 09 09 20 20 53 55 42 20 |ptional.|.. SUB |
|00003970| 62 6c 61 68 28 76 29 09 | 09 27 20 70 75 62 6c 69 |blah(v).|.' publi|
|00003980| 63 20 6d 65 6d 62 65 72 | 20 66 75 6e 63 74 69 6f |c member| functio|
|00003990| 6e 0d 09 09 20 20 20 20 | 74 68 69 73 2e 79 20 3d |n... |this.y =|
|000039a0| 20 76 20 2b 20 37 0d 09 | 09 20 20 45 4e 44 20 53 | v + 7..|. END S|
|000039b0| 55 42 0d 09 09 45 4e 44 | 20 43 4c 41 53 53 0d 09 |UB...END| CLASS..|
|000039c0| 09 0d 09 09 44 49 4d 20 | 62 20 41 53 20 4e 45 57 |....DIM |b AS NEW|
|000039d0| 20 62 61 72 09 27 20 63 | 72 65 61 74 65 20 6f 62 | bar.' c|reate ob|
|000039e0| 6a 65 63 74 20 62 0d 09 | 09 43 41 4c 4c 20 62 2e |ject b..|.CALL b.|
|000039f0| 62 6c 61 68 28 31 29 09 | 09 27 20 73 65 6e 64 20 |blah(1).|.' send |
|00003a00| 6d 65 73 73 61 67 65 20 | 22 62 6c 61 68 28 31 29 |message |"blah(1)|
|00003a10| 22 20 74 6f 20 62 0d 09 | 09 0d 09 09 43 4c 41 53 |" to b..|....CLAS|
|00003a20| 53 20 61 6e 64 20 54 59 | 50 45 20 64 65 66 69 6e |S and TY|PE defin|
|00003a30| 69 74 69 6f 6e 73 20 61 | 72 65 20 67 6c 6f 62 61 |itions a|re globa|
|00003a40| 6c 2c 20 61 6e 64 20 63 | 61 6e 6e 6f 74 20 62 65 |l, and c|annot be|
|00003a50| 0d 09 09 6e 65 73 74 65 | 64 20 69 6e 73 69 64 65 |...neste|d inside|
|00003a60| 20 6f 74 68 65 72 20 63 | 6c 61 73 73 20 64 65 66 | other c|lass def|
|00003a70| 69 6e 69 74 69 6f 6e 73 | 20 6f 72 20 73 75 62 72 |initions| or subr|
|00003a80| 6f 75 74 69 6e 65 73 2e | 0d 09 09 0d 09 64 69 6d |outines.|.....dim|
|00003a90| 20 56 41 52 20 7b 20 28 | 20 49 4e 54 20 29 20 7d | VAR { (| INT ) }|
|00003aa0| 20 61 73 20 6e 65 77 20 | 43 4c 41 53 53 4e 41 4d | as new |CLASSNAM|
|00003ab0| 45 0d 0d 09 09 43 72 65 | 61 74 65 20 61 20 72 65 |E....Cre|ate a re|
|00003ac0| 63 6f 72 64 20 28 54 59 | 50 45 44 2d 56 41 52 29 |cord (TY|PED-VAR)|
|00003ad0| 20 6f 72 20 6f 62 6a 65 | 63 74 20 75 73 69 6e 67 | or obje|ct using|
|00003ae0| 20 61 0d 09 09 70 72 65 | 76 69 6f 75 73 6c 79 20 | a...pre|viously |
|00003af0| 64 65 66 69 6e 65 64 20 | 73 74 72 75 63 74 75 72 |defined |structur|
|00003b00| 65 20 64 65 66 69 6e 69 | 74 69 6f 6e 20 74 79 70 |e defini|tion typ|
|00003b10| 65 20 63 72 65 61 74 65 | 64 0d 09 09 62 79 20 54 |e create|d...by T|
|00003b20| 59 50 45 2e 2e 2e 45 4e | 44 20 54 59 50 45 20 6f |YPE...EN|D TYPE o|
|00003b30| 72 20 43 4c 41 53 53 2e | 2e 45 4e 44 20 43 4c 41 |r CLASS.|.END CLA|
|00003b40| 53 53 2e 20 20 4f 70 74 | 69 6f 6e 61 6c 6c 79 0d |SS. Opt|ionally.|
|00003b50| 09 09 63 72 65 61 74 65 | 73 20 61 6e 20 61 72 72 |..create|s an arr|
|00003b60| 61 79 20 6f 66 20 72 65 | 63 6f 72 64 73 20 6f 72 |ay of re|cords or|
|00003b70| 20 6f 62 6a 65 63 74 73 | 2e 0d 09 09 0d 09 65 72 | objects|......er|
|00003b80| 61 73 65 20 56 41 52 0d | 09 0d 09 09 55 6e 2d 64 |ase VAR.|....Un-d|
|00003b90| 69 6d 65 6e 73 69 6f 6e | 73 20 61 20 64 69 6d 65 |imension|s a dime|
|00003ba0| 6e 73 69 6f 6e 65 64 20 | 61 72 72 61 79 2e 20 20 |nsioned |array. |
|00003bb0| 46 72 65 65 73 20 6d 65 | 6d 6f 72 79 2e 0d 0d 09 |Frees me|mory....|
|00003bc0| 7b 20 6c 65 74 20 7d 20 | 6d 69 64 24 28 20 53 54 |{ let } |mid$( ST|
|00003bd0| 52 49 4e 47 56 41 52 2c | 20 45 58 50 52 31 2c 20 |RINGVAR,| EXPR1, |
|00003be0| 45 58 50 52 32 20 29 20 | 3d 20 53 54 52 49 4e 47 |EXPR2 ) |= STRING|
|00003bf0| 45 58 50 52 0d 0d 09 09 | 52 65 70 6c 61 63 65 20 |EXPR....|Replace |
|00003c00| 74 68 65 20 73 75 62 2d | 73 74 72 69 6e 67 20 69 |the sub-|string i|
|00003c10| 6e 20 53 54 52 49 4e 47 | 56 41 52 2c 20 73 74 61 |n STRING|VAR, sta|
|00003c20| 72 74 69 6e 67 20 61 74 | 0d 09 09 63 68 61 72 61 |rting at|...chara|
|00003c30| 63 74 65 72 20 70 6f 73 | 69 74 69 6f 6e 20 45 58 |cter pos|ition EX|
|00003c40| 50 52 31 2c 20 77 69 74 | 68 20 63 68 61 72 61 63 |PR1, wit|h charac|
|00003c50| 74 65 72 20 6c 65 6e 67 | 74 68 20 45 58 50 52 32 |ter leng|th EXPR2|
|00003c60| 2c 0d 09 09 77 69 74 68 | 20 74 68 65 20 28 45 58 |,...with| the (EX|
|00003c70| 50 52 32 20 69 6e 20 6c | 65 6e 67 74 68 29 20 73 |PR2 in l|ength) s|
|00003c80| 74 72 69 6e 67 20 53 54 | 52 49 4e 47 45 58 50 52 |tring ST|RINGEXPR|
|00003c90| 2e 0d 0d 09 7b 20 6c 65 | 74 20 7d 20 66 69 65 6c |....{ le|t } fiel|
|00003ca0| 64 24 28 20 53 54 52 49 | 4e 47 56 41 52 2c 20 56 |d$( STRI|NGVAR, V|
|00003cb0| 41 4c 20 7b 20 2c 53 54 | 52 49 4e 47 56 41 4c 20 |AL { ,ST|RINGVAL |
|00003cc0| 7d 20 29 20 3d 20 53 54 | 52 49 4e 47 45 58 50 52 |} ) = ST|RINGEXPR|
|00003cd0| 0d 0d 09 09 52 65 70 6c | 61 63 65 20 74 68 65 20 |....Repl|ace the |
|00003ce0| 4e 2d 74 68 20 66 69 65 | 6c 64 20 6f 66 20 53 54 |N-th fie|ld of ST|
|00003cf0| 52 49 4e 47 56 41 52 20 | 77 69 74 68 20 53 54 52 |RINGVAR |with STR|
|00003d00| 49 4e 47 45 58 50 52 2e | 0d 0d 09 70 6f 6b 65 20 |INGEXPR.|...poke |
|00003d10| 41 44 44 52 5f 45 58 50 | 52 2c 20 44 41 54 41 5f |ADDR_EXP|R, DATA_|
|00003d20| 45 58 50 52 0d 0d 09 09 | 50 6f 6b 65 20 61 20 62 |EXPR....|Poke a b|
|00003d30| 79 74 65 20 69 6e 74 6f | 20 61 20 6d 65 6d 6f 72 |yte into| a memor|
|00003d40| 79 20 6c 6f 63 61 74 69 | 6f 6e 2e 20 55 6e 72 65 |y locati|on. Unre|
|00003d50| 61 73 6f 6e 61 62 6c 65 | 0d 09 09 61 64 64 72 65 |asonable|...addre|
|00003d60| 73 73 65 73 20 63 61 6e | 20 63 61 75 73 65 20 62 |sses can| cause b|
|00003d70| 75 73 20 6f 72 20 73 65 | 67 6d 65 6e 74 61 74 69 |us or se|gmentati|
|00003d80| 6f 6e 20 65 72 72 6f 72 | 73 2e 0d 0d 09 70 75 73 |on error|s....pus|
|00003d90| 68 20 56 41 52 20 7b 20 | 2c 20 56 41 52 20 2e 2e |h VAR { |, VAR ..|
|00003da0| 2e 20 7d 0d 0d 09 09 50 | 75 73 68 65 73 20 6f 6e |. }....P|ushes on|
|00003db0| 65 20 6f 72 20 6d 6f 72 | 65 20 65 78 70 72 65 73 |e or mor|e expres|
|00003dc0| 73 69 6f 6e 73 20 6f 72 | 20 76 61 72 69 61 62 6c |sions or| variabl|
|00003dd0| 65 73 20 6f 6e 74 6f 20 | 61 6e 0d 09 09 69 6e 74 |es onto |an...int|
|00003de0| 65 72 6e 61 6c 20 73 74 | 61 63 6b 2e 20 20 45 78 |ernal st|ack. Ex|
|00003df0| 70 72 65 73 73 69 6f 6e | 73 20 63 61 6e 20 62 65 |pression|s can be|
|00003e00| 20 72 65 74 75 72 6e 65 | 64 20 75 73 69 6e 67 20 | returne|d using |
|00003e10| 74 68 65 0d 09 09 50 4f | 50 20 66 75 6e 63 74 69 |the...PO|P functi|
|00003e20| 6f 6e 3b 20 76 61 72 69 | 61 62 6c 65 73 20 63 61 |on; vari|ables ca|
|00003e30| 6e 20 62 65 20 72 65 74 | 75 72 6e 65 64 20 62 79 |n be ret|urned by|
|00003e40| 20 75 73 69 6e 67 20 74 | 68 65 0d 09 09 50 4f 50 | using t|he...POP|
|00003e50| 20 73 74 61 74 65 6d 65 | 6e 74 2e 0d 09 0d 09 70 | stateme|nt.....p|
|00003e60| 6f 70 20 56 41 4c 0d 0d | 09 09 50 4f 50 20 73 74 |op VAL..|..POP st|
|00003e70| 61 74 65 6d 65 6e 74 20 | 28 73 65 65 20 61 6c 73 |atement |(see als|
|00003e80| 6f 20 50 4f 50 20 66 75 | 6e 63 74 69 6f 6e 29 2e |o POP fu|nction).|
|00003e90| 20 50 6f 70 73 20 56 41 | 4c 0d 09 09 76 61 72 69 | Pops VA|L...vari|
|00003ea0| 61 62 6c 65 73 20 6f 66 | 66 20 74 68 65 20 69 6e |ables of|f the in|
|00003eb0| 74 65 72 6e 61 6c 20 73 | 74 61 63 6b 2c 20 72 65 |ternal s|tack, re|
|00003ec0| 73 74 6f 72 69 6e 67 20 | 74 68 65 20 76 61 6c 75 |storing |the valu|
|00003ed0| 65 0d 09 09 6f 66 20 74 | 68 6f 73 65 20 76 61 72 |e...of t|hose var|
|00003ee0| 69 61 62 6c 65 73 20 74 | 6f 20 74 68 65 69 72 20 |iables t|o their |
|00003ef0| 70 75 73 68 65 64 20 76 | 61 6c 75 65 73 2e 0d 09 |pushed v|alues...|
|00003f00| 0d 09 65 78 65 63 28 53 | 54 52 49 4e 47 45 58 50 |..exec(S|TRINGEXP|
|00003f10| 52 29 0d 0d 09 09 45 78 | 65 63 75 74 65 73 20 53 |R)....Ex|ecutes S|
|00003f20| 54 52 49 4e 47 45 58 50 | 52 20 61 73 20 61 20 73 |TRINGEXP|R as a s|
|00003f30| 74 61 74 65 6d 65 6e 74 | 20 6f 72 20 63 6f 6d 6d |tatement| or comm|
|00003f40| 61 6e 64 2e 20 0d 09 09 | 65 2e 67 2e 20 65 78 65 |and. ...|e.g. exe|
|00003f50| 63 28 22 70 72 69 6e 74 | 20 22 20 2b 20 22 78 22 |c("print| " + "x"|
|00003f60| 29 20 77 69 6c 6c 20 70 | 72 69 6e 74 20 74 68 65 |) will p|rint the|
|00003f70| 20 76 61 6c 75 65 20 6f | 66 20 78 2e 0d 0d 0d 20 | value o|f x.... |
|00003f80| 20 20 20 4e 55 4d 45 52 | 49 43 20 46 55 4e 43 54 | NUMER|IC FUNCT|
|00003f90| 49 4f 4e 53 0d 0d 09 73 | 67 6e 28 56 41 4c 29 0d |IONS...s|gn(VAL).|
|00003fa0| 0d 09 09 52 65 74 75 72 | 6e 73 20 74 68 65 20 73 |...Retur|ns the s|
|00003fb0| 69 67 6e 20 6f 66 20 74 | 68 65 20 70 61 72 61 6d |ign of t|he param|
|00003fc0| 65 74 65 72 20 76 61 6c | 75 65 2e 20 20 52 65 74 |eter val|ue. Ret|
|00003fd0| 75 72 6e 73 20 31 20 69 | 66 0d 09 09 74 68 65 20 |urns 1 i|f...the |
|00003fe0| 76 61 6c 75 65 20 69 73 | 20 67 72 65 61 74 65 72 |value is| greater|
|00003ff0| 20 74 68 61 6e 20 7a 65 | 72 6f 20 2c 20 7a 65 72 | than ze|ro , zer|
|00004000| 6f 20 69 66 20 65 71 75 | 61 6c 20 74 6f 20 7a 65 |o if equ|al to ze|
|00004010| 72 6f 2e 0d 09 09 2d 31 | 20 69 66 20 6e 65 67 61 |ro....-1| if nega|
|00004020| 74 69 76 65 2e 0d 0d 09 | 61 62 73 28 78 29 0d 0d |tive....|abs(x)..|
|00004030| 09 09 52 65 74 75 72 6e | 73 20 74 68 65 20 61 62 |..Return|s the ab|
|00004040| 73 6f 6c 75 74 65 20 76 | 61 6c 75 65 20 6f 66 20 |solute v|alue of |
|00004050| 78 2e 0d 0d 09 69 6e 74 | 28 78 29 0d 0d 09 09 52 |x....int|(x)....R|
|00004060| 65 74 75 72 6e 73 20 74 | 68 65 20 69 6e 74 65 67 |eturns t|he integ|
|00004070| 65 72 20 76 61 6c 75 65 | 20 6f 66 20 78 2e 20 20 |er value| of x. |
|00004080| 54 72 75 6e 63 61 74 65 | 73 20 74 6f 77 61 72 64 |Truncate|s toward|
|00004090| 20 7a 65 72 6f 2e 0d 09 | 09 54 68 65 20 61 62 73 | zero...|.The abs|
|000040a0| 6f 6c 75 74 65 20 76 61 | 6c 75 65 20 6f 66 20 78 |olute va|lue of x|
|000040b0| 20 6d 75 73 74 20 62 65 | 20 6c 65 73 73 20 74 68 | must be| less th|
|000040c0| 61 6e 20 32 5e 33 31 2d | 31 2e 0d 0d 09 66 6c 6f |an 2^31-|1....flo|
|000040d0| 6f 72 28 78 29 0d 0d 09 | 09 52 65 74 75 72 6e 73 |or(x)...|.Returns|
|000040e0| 20 74 68 65 20 69 6e 74 | 65 67 65 72 20 76 61 6c | the int|eger val|
|000040f0| 75 65 20 6f 66 20 78 2e | 0d 09 09 54 72 75 6e 63 |ue of x.|...Trunc|
|00004100| 61 74 65 73 20 74 6f 77 | 61 72 64 20 6e 65 67 61 |ates tow|ard nega|
|00004110| 74 69 76 65 20 69 6e 66 | 69 6e 69 74 79 2e 0d 0d |tive inf|inity...|
|00004120| 09 73 71 72 28 78 29 0d | 0d 09 09 52 65 74 75 72 |.sqr(x).|...Retur|
|00004130| 6e 73 20 74 68 65 20 73 | 71 75 61 72 65 20 72 6f |ns the s|quare ro|
|00004140| 6f 74 20 6f 66 20 78 2e | 0d 0d 09 6c 6f 67 28 78 |ot of x.|...log(x|
|00004150| 29 0d 0d 09 09 52 65 74 | 75 72 6e 73 20 74 68 65 |)....Ret|urns the|
|00004160| 20 6e 61 74 75 72 61 6c | 20 6c 6f 67 61 72 69 74 | natural| logarit|
|00004170| 68 6d 20 6f 66 20 78 2e | 0d 0d 09 6c 6f 67 31 30 |hm of x.|...log10|
|00004180| 28 78 29 0d 0d 09 09 52 | 65 74 75 72 6e 73 20 74 |(x)....R|eturns t|
|00004190| 68 65 20 6c 6f 67 61 72 | 69 74 68 6d 20 62 61 73 |he logar|ithm bas|
|000041a0| 65 20 31 30 20 6f 66 20 | 78 2e 0d 0d 09 65 78 70 |e 10 of |x....exp|
|000041b0| 28 78 29 0d 0d 09 09 52 | 65 74 75 72 6e 73 20 65 |(x)....R|eturns e|
|000041c0| 5e 78 2e 20 65 3d 32 2e | 37 31 38 32 38 31 38 2e |^x. e=2.|7182818.|
|000041d0| 2e 2e 0d 0d 09 73 69 6e | 28 78 29 0d 09 63 6f 73 |.....sin|(x)..cos|
|000041e0| 28 78 29 0d 09 61 74 6e | 28 78 29 0d 0d 09 09 54 |(x)..atn|(x)....T|
|000041f0| 72 69 67 6f 6e 6f 6d 65 | 74 72 69 63 20 66 75 6e |rigonome|tric fun|
|00004200| 63 74 69 6f 6e 73 3a 20 | 73 69 6e 2c 20 63 6f 73 |ctions: |sin, cos|
|00004210| 69 6e 65 20 61 6e 64 20 | 61 72 63 74 61 6e 67 65 |ine and |arctange|
|00004220| 6e 74 2e 20 0d 0d 09 70 | 69 0d 09 0d 09 09 52 65 |nt. ...p|i.....Re|
|00004230| 74 75 72 6e 73 20 70 69 | 2c 20 33 2e 31 34 31 35 |turns pi|, 3.1415|
|00004240| 39 32 36 35 33 35 38 39 | 37 39 33 2e 2e 2e 20 0d |92653589|793... .|
|00004250| 0d 09 72 6e 64 20 28 20 | 45 58 50 52 20 29 0d 0d |..rnd ( |EXPR )..|
|00004260| 09 09 52 65 74 75 72 6e | 73 20 61 6e 20 69 6e 74 |..Return|s an int|
|00004270| 65 67 65 72 20 70 73 65 | 75 64 6f 2d 72 61 6e 64 |eger pse|udo-rand|
|00004280| 6f 6d 20 6e 75 6d 62 65 | 72 20 62 65 74 77 65 65 |om numbe|r betwee|
|00004290| 6e 20 30 20 61 6e 64 0d | 09 09 69 6e 74 28 45 58 |n 0 and.|..int(EX|
|000042a0| 50 52 29 2d 31 20 69 6e | 63 6c 75 73 69 76 65 2e |PR)-1 in|clusive.|
|000042b0| 20 49 66 20 45 58 50 52 | 20 69 73 20 31 2c 20 74 | If EXPR| is 1, t|
|000042c0| 68 65 6e 20 72 65 74 75 | 72 6e 73 20 61 0d 09 09 |hen retu|rns a...|
|000042d0| 72 61 74 69 6f 6e 61 6c | 20 6e 75 6d 62 65 72 20 |rational| number |
|000042e0| 62 65 74 77 65 65 6e 20 | 30 20 28 69 6e 63 6c 75 |between |0 (inclu|
|000042f0| 73 69 76 65 29 20 61 6e | 64 20 31 2e 20 20 49 66 |sive) an|d 1. If|
|00004300| 20 45 58 50 52 0d 09 09 | 69 73 20 6e 65 67 61 74 | EXPR...|is negat|
|00004310| 69 76 65 20 74 68 65 6e | 20 45 58 50 52 20 73 65 |ive then| EXPR se|
|00004320| 65 64 73 20 74 68 65 20 | 72 61 6e 64 6f 6d 20 6e |eds the |random n|
|00004330| 75 6d 62 65 72 20 67 65 | 6e 65 72 61 74 6f 72 2e |umber ge|nerator.|
|00004340| 0d 0d 09 72 61 6e 64 6f | 6d 69 7a 65 20 45 58 50 |...rando|mize EXP|
|00004350| 52 0d 0d 09 09 53 65 65 | 64 73 20 74 68 65 20 72 |R....See|ds the r|
|00004360| 61 6e 64 6f 6d 20 6e 75 | 6d 62 65 72 20 67 65 6e |andom nu|mber gen|
|00004370| 65 72 61 74 6f 72 20 77 | 69 74 68 20 74 68 65 20 |erator w|ith the |
|00004380| 69 6e 74 65 67 65 72 0d | 09 09 45 58 50 52 2e 20 |integer.|..EXPR. |
|00004390| 54 68 65 20 70 73 65 75 | 64 6f 2d 72 61 6e 64 6f |The pseu|do-rando|
|000043a0| 6d 20 6e 75 6d 62 65 72 | 20 67 65 6e 65 72 61 74 |m number| generat|
|000043b0| 6f 72 20 73 68 6f 75 6c | 64 20 72 65 74 75 72 6e |or shoul|d return|
|000043c0| 0d 09 09 74 68 65 20 73 | 61 6d 65 20 73 65 71 75 |...the s|ame sequ|
|000043d0| 65 6e 63 65 20 77 68 65 | 6e 20 73 65 65 64 65 64 |ence whe|n seeded|
|000043e0| 20 77 69 74 68 20 74 68 | 65 20 73 61 6d 65 20 73 | with th|e same s|
|000043f0| 74 61 72 74 0d 09 09 76 | 61 6c 75 65 2e 20 20 54 |tart...v|alue. T|
|00004400| 68 65 20 61 63 74 75 61 | 6c 20 73 65 71 75 65 6e |he actua|l sequen|
|00004410| 63 65 20 6d 61 79 20 62 | 65 20 73 79 73 74 65 6d |ce may b|e system|
|00004420| 20 64 65 70 65 6e 64 61 | 6e 74 2e 0d 0d 09 6c 65 | dependa|nt....le|
|00004430| 6e 28 20 53 54 52 49 4e | 47 45 58 50 52 20 29 0d |n( STRIN|GEXPR ).|
|00004440| 0d 09 09 52 65 74 75 72 | 6e 73 20 74 68 65 20 6c |...Retur|ns the l|
|00004450| 65 6e 67 74 68 20 6f 66 | 20 74 68 65 20 73 74 72 |ength of| the str|
|00004460| 69 6e 67 20 53 54 52 49 | 4e 47 45 58 50 52 2e 0d |ing STRI|NGEXPR..|
|00004470| 0d 09 6c 65 6e 28 20 54 | 59 50 45 44 2d 56 41 52 |..len( T|YPED-VAR|
|00004480| 20 29 0d 0d 09 09 52 65 | 74 75 72 6e 73 20 74 68 | )....Re|turns th|
|00004490| 65 20 6c 65 6e 67 74 68 | 2c 20 69 6e 20 62 79 74 |e length|, in byt|
|000044a0| 65 73 2c 20 6f 66 20 61 | 20 74 79 70 65 64 20 72 |es, of a| typed r|
|000044b0| 65 63 6f 72 64 0d 09 09 | 28 6f 6e 65 20 63 72 65 |ecord...|(one cre|
|000044c0| 61 74 65 64 20 62 79 20 | 44 49 4d 20 41 53 29 2e |ated by |DIM AS).|
|000044d0| 0d 0d 09 76 61 6c 28 20 | 53 54 52 49 4e 47 45 58 |...val( |STRINGEX|
|000044e0| 50 52 20 7c 20 45 58 50 | 52 20 29 0d 0d 09 09 56 |PR | EXP|R )....V|
|000044f0| 61 6c 75 65 20 6f 66 20 | 74 68 65 20 65 78 70 72 |alue of |the expr|
|00004500| 65 73 73 69 6f 6e 20 63 | 6f 6e 74 61 69 6e 65 64 |ession c|ontained|
|00004510| 20 69 6e 20 61 20 53 54 | 52 49 4e 47 45 58 50 52 | in a ST|RINGEXPR|
|00004520| 20 6f 72 0d 09 09 45 58 | 50 52 2e 20 20 53 54 52 | or...EX|PR. STR|
|00004530| 49 4e 47 45 58 50 52 20 | 6d 61 79 20 62 65 20 61 |INGEXPR |may be a|
|00004540| 20 73 74 72 69 6e 67 20 | 6c 69 74 65 72 61 6c 2c | string |literal,|
|00004550| 20 76 61 72 69 61 62 6c | 65 2c 0d 09 09 66 75 6e | variabl|e,...fun|
|00004560| 63 74 69 6f 6e 2c 20 6f | 72 20 65 78 70 72 65 73 |ction, o|r expres|
|00004570| 73 69 6f 6e 2e 0d 09 09 | 0d 09 09 46 6f 72 20 65 |sion....|...For e|
|00004580| 78 61 6d 70 6c 65 2c 20 | 56 41 4c 28 22 31 20 2b |xample, |VAL("1 +|
|00004590| 20 73 71 72 28 34 29 22 | 29 20 79 69 65 6c 64 73 | sqr(4)"|) yields|
|000045a0| 20 33 2e 0d 0d 09 61 73 | 63 28 20 53 54 52 49 4e | 3....as|c( STRIN|
|000045b0| 47 45 58 50 52 20 29 0d | 0d 09 09 52 65 74 75 72 |GEXPR ).|...Retur|
|000045c0| 6e 73 20 74 68 65 20 61 | 73 63 69 69 20 63 6f 64 |ns the a|scii cod|
|000045d0| 65 20 66 6f 72 20 74 68 | 65 20 66 69 72 73 74 20 |e for th|e first |
|000045e0| 63 68 61 72 61 63 74 65 | 72 20 6f 66 0d 09 09 53 |characte|r of...S|
|000045f0| 54 52 49 4e 47 45 58 50 | 52 2e 20 20 41 20 6e 75 |TRINGEXP|R. A nu|
|00004600| 6c 6c 20 73 74 72 69 6e | 67 20 72 65 74 75 72 6e |ll strin|g return|
|00004610| 73 20 7a 65 72 6f 2e 0d | 0d 09 69 6e 73 74 72 28 |s zero..|..instr(|
|00004620| 61 24 2c 20 62 24 20 7b | 20 2c 20 56 41 4c 20 7d |a$, b$ {| , VAL }|
|00004630| 20 29 0d 0d 09 09 52 65 | 74 75 72 6e 73 20 74 68 | )....Re|turns th|
|00004640| 65 20 70 6f 73 69 74 69 | 6f 6e 20 6f 66 20 74 68 |e positi|on of th|
|00004650| 65 20 73 75 62 73 74 72 | 69 6e 67 20 62 24 20 69 |e substr|ing b$ i|
|00004660| 6e 20 74 68 65 0d 09 09 | 73 74 72 69 6e 67 20 61 |n the...|string a|
|00004670| 24 20 6f 72 20 72 65 74 | 75 72 6e 73 20 61 20 7a |$ or ret|urns a z|
|00004680| 65 72 6f 20 69 66 20 62 | 24 20 69 73 20 6e 6f 74 |ero if b|$ is not|
|00004690| 20 61 20 73 75 62 73 74 | 72 69 6e 67 2e 0d 09 09 | a subst|ring....|
|000046a0| 56 41 4c 20 69 73 20 61 | 6e 20 6f 70 74 69 6f 6e |VAL is a|n option|
|000046b0| 61 6c 20 73 74 61 72 74 | 69 6e 67 20 70 6f 73 69 |al start|ing posi|
|000046c0| 74 69 6f 6e 20 69 6e 20 | 61 24 0d 0d 09 75 62 6f |tion in |a$...ubo|
|000046d0| 75 6e 64 20 28 20 56 41 | 52 20 29 0d 09 0d 09 09 |und ( VA|R ).....|
|000046e0| 49 66 20 56 41 52 20 69 | 73 20 61 20 64 69 6d 65 |If VAR i|s a dime|
|000046f0| 6e 73 69 6f 6e 65 64 20 | 61 72 72 61 79 2c 20 72 |nsioned |array, r|
|00004700| 65 74 75 72 6e 73 20 74 | 68 65 20 6d 61 78 69 6d |eturns t|he maxim|
|00004710| 75 6d 0d 09 09 6c 65 67 | 61 6c 20 73 75 62 73 63 |um...leg|al subsc|
|00004720| 72 69 70 74 20 6f 66 20 | 74 68 65 20 66 69 72 73 |ript of |the firs|
|00004730| 74 20 64 69 6d 65 6e 73 | 69 6f 6e 20 6f 66 20 74 |t dimens|ion of t|
|00004740| 68 61 74 20 61 72 72 61 | 79 2c 0d 09 09 65 6c 73 |hat arra|y,...els|
|00004750| 65 20 72 65 74 75 72 6e | 73 20 30 2e 0d 0d 09 66 |e return|s 0....f|
|00004760| 67 65 74 62 79 74 65 20 | 28 20 46 49 4c 45 4e 55 |getbyte |( FILENU|
|00004770| 4d 20 29 0d 0d 09 09 52 | 65 61 64 73 20 6f 6e 65 |M )....R|eads one|
|00004780| 20 62 79 74 65 20 66 72 | 6f 6d 20 74 68 65 20 6f | byte fr|om the o|
|00004790| 70 65 6e 20 66 69 6c 65 | 20 73 70 65 63 69 66 69 |pen file| specifi|
|000047a0| 65 64 20 62 79 20 46 49 | 4c 45 4e 55 4d 0d 09 09 |ed by FI|LENUM...|
|000047b0| 61 6e 64 20 72 65 74 75 | 72 6e 73 20 61 6e 20 75 |and retu|rns an u|
|000047c0| 6e 73 69 67 6e 65 64 20 | 6e 75 6d 65 72 69 63 20 |nsigned |numeric |
|000047d0| 76 61 6c 75 65 20 5b 30 | 2e 2e 32 35 35 5d 2e 0d |value [0|..255]..|
|000047e0| 0d 09 65 6f 66 28 46 49 | 4c 45 4e 55 4d 29 0d 0d |..eof(FI|LENUM)..|
|000047f0| 09 09 52 65 74 75 72 6e | 73 20 74 72 75 65 20 69 |..Return|s true i|
|00004800| 66 20 74 68 65 20 74 68 | 65 20 6c 61 73 74 20 49 |f the th|e last I|
|00004810| 4e 50 55 54 20 73 74 61 | 74 65 6d 65 6e 74 2c 20 |NPUT sta|tement, |
|00004820| 49 4e 50 55 54 24 0d 09 | 09 6f 72 20 46 47 45 54 |INPUT$..|.or FGET|
|00004830| 42 59 54 45 20 66 75 6e | 63 74 69 6f 6e 20 63 61 |BYTE fun|ction ca|
|00004840| 6c 6c 20 77 68 69 63 68 | 20 72 65 66 65 72 65 6e |ll which| referen|
|00004850| 63 65 64 20 74 68 65 20 | 74 65 78 74 0d 09 09 66 |ced the |text...f|
|00004860| 69 6c 65 20 73 70 65 63 | 69 66 69 65 64 20 62 79 |ile spec|ified by|
|00004870| 20 46 49 4c 45 4e 55 4d | 20 74 72 69 65 64 20 74 | FILENUM| tried t|
|00004880| 6f 20 72 65 61 64 20 70 | 61 73 74 20 74 68 65 20 |o read p|ast the |
|00004890| 65 6e 64 0d 09 09 6f 66 | 20 66 69 6c 65 2e 20 28 |end...of| file. (|
|000048a0| 4e 6f 74 65 20 74 68 61 | 74 20 72 65 61 64 69 6e |Note tha|t readin|
|000048b0| 67 20 74 68 65 20 6c 61 | 73 74 20 6c 69 6e 65 20 |g the la|st line |
|000048c0| 6f 66 20 61 20 66 69 6c | 65 0d 09 09 77 69 6c 6c |of a fil|e...will|
|000048d0| 20 6e 6f 74 20 72 65 61 | 64 20 70 61 73 74 20 74 | not rea|d past t|
|000048e0| 68 65 20 65 6f 66 20 6d | 61 72 6b 2e 20 20 41 20 |he eof m|ark. A |
|000048f0| 73 75 62 73 65 71 75 65 | 6e 74 20 72 65 61 64 20 |subseque|nt read |
|00004900| 69 73 0d 09 09 6e 65 65 | 64 65 64 20 74 6f 20 73 |is...nee|ded to s|
|00004910| 65 74 20 74 68 65 20 45 | 4f 46 20 66 6c 61 67 20 |et the E|OF flag |
|00004920| 74 6f 20 74 72 75 65 2e | 20 20 52 65 61 64 69 6e |to true.| Readin|
|00004930| 67 20 70 61 73 74 20 74 | 68 65 0d 09 09 65 6e 64 |g past t|he...end|
|00004940| 2d 6f 66 2d 66 69 6c 65 | 20 77 69 6c 6c 20 6e 6f |-of-file| will no|
|00004950| 74 20 72 65 70 6f 72 74 | 20 61 6e 20 65 72 72 6f |t report| an erro|
|00004960| 72 2e 29 0d 0d 09 70 6f | 70 0d 0d 09 09 50 4f 50 |r.)...po|p....POP|
|00004970| 20 66 75 6e 63 74 69 6f | 6e 20 28 73 65 65 20 61 | functio|n (see a|
|00004980| 6c 73 6f 20 50 4f 50 20 | 73 74 61 74 65 6d 65 6e |lso POP |statemen|
|00004990| 74 29 2e 20 50 6f 70 73 | 20 6f 6e 65 20 76 61 72 |t). Pops| one var|
|000049a0| 69 61 62 6c 65 0d 09 09 | 76 61 6c 75 65 20 6f 66 |iable...|value of|
|000049b0| 66 20 74 68 65 20 73 74 | 61 63 6b 20 61 6e 64 20 |f the st|ack and |
|000049c0| 72 65 74 75 72 6e 73 20 | 74 68 61 74 20 76 61 6c |returns |that val|
|000049d0| 75 65 20 28 73 74 72 69 | 6e 67 20 6f 72 0d 09 09 |ue (stri|ng or...|
|000049e0| 6e 75 6d 65 72 69 63 29 | 2e 0d 09 09 0d 09 09 28 |numeric)|.......(|
|000049f0| 50 4f 50 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |POP can |be used |
|00004a00| 61 73 20 65 69 74 68 65 | 72 20 61 20 73 74 61 74 |as eithe|r a stat|
|00004a10| 65 6d 65 6e 74 20 28 77 | 69 74 68 20 61 0d 09 09 |ement (w|ith a...|
|00004a20| 70 61 72 61 6d 65 74 65 | 72 29 20 6f 72 20 61 20 |paramete|r) or a |
|00004a30| 66 75 6e 63 74 69 6f 6e | 20 28 6e 6f 20 70 61 72 |function| (no par|
|00004a40| 61 6d 65 74 65 72 29 2e | 20 4e 6f 74 65 20 74 68 |ameter).| Note th|
|00004a50| 61 74 20 74 68 65 0d 09 | 09 50 4f 50 20 66 75 6e |at the..|.POP fun|
|00004a60| 63 74 69 6f 6e 2c 20 75 | 6e 6c 69 6b 65 20 74 68 |ction, u|nlike th|
|00004a70| 65 20 50 4f 50 20 73 74 | 61 74 65 6d 65 6e 74 2c |e POP st|atement,|
|00004a80| 20 64 6f 65 73 20 6e 6f | 74 0d 09 09 72 65 73 74 | does no|t...rest|
|00004a90| 6f 72 65 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 |ore the |value of|
|00004aa0| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 20 70 75 | the var|iable pu|
|00004ab0| 73 68 65 64 2c 20 62 75 | 74 20 6f 6e 6c 79 0d 09 |shed, bu|t only..|
|00004ac0| 09 72 65 74 75 72 6e 73 | 20 74 68 65 20 70 75 73 |.returns| the pus|
|00004ad0| 68 65 64 20 76 61 6c 75 | 65 2e 20 20 54 68 69 73 |hed valu|e. This|
|00004ae0| 20 75 73 65 20 6f 66 20 | 74 68 65 20 50 4f 50 0d | use of |the POP.|
|00004af0| 09 09 73 74 61 74 65 6d | 65 6e 74 20 69 73 20 64 |..statem|ent is d|
|00004b00| 69 66 66 65 72 65 6e 74 | 20 66 72 6f 6d 20 74 68 |ifferent| from th|
|00004b10| 65 20 41 70 70 6c 65 73 | 6f 66 74 20 75 73 61 67 |e Apples|oft usag|
|00004b20| 65 2e 29 0d 0d 09 70 65 | 65 6b 28 20 41 44 44 52 |e.)...pe|ek( ADDR|
|00004b30| 20 7b 20 2c 20 53 49 5a | 45 5f 56 41 4c 20 7d 20 | { , SIZ|E_VAL } |
|00004b40| 29 0d 0d 09 09 52 65 74 | 75 72 6e 73 20 74 68 65 |)....Ret|urns the|
|00004b50| 20 76 61 6c 75 65 20 6f | 66 20 74 68 65 20 62 79 | value o|f the by|
|00004b60| 74 65 20 69 6e 20 6d 65 | 6d 6f 72 79 20 61 74 20 |te in me|mory at |
|00004b70| 61 64 64 72 65 73 73 20 | 41 44 44 52 2e 0d 09 09 |address |ADDR....|
|00004b80| 49 66 20 53 49 5a 45 5f | 56 41 4c 20 69 73 20 32 |If SIZE_|VAL is 2|
|00004b90| 20 6f 72 20 34 2c 20 72 | 65 74 75 72 6e 73 20 74 | or 4, r|eturns t|
|00004ba0| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 74 68 65 20 |he value| of the |
|00004bb0| 31 36 2d 62 69 74 0d 09 | 09 6f 72 20 33 32 2d 62 |16-bit..|.or 32-b|
|00004bc0| 69 74 20 77 6f 72 64 20 | 72 65 73 70 65 63 74 69 |it word |respecti|
|00004bd0| 76 65 6c 79 20 28 69 66 | 20 63 6f 72 72 65 63 74 |vely (if| correct|
|00004be0| 6c 79 20 61 6c 69 67 6e | 65 64 29 2e 0d 09 09 49 |ly align|ed)....I|
|00004bf0| 66 20 53 49 5a 45 5f 56 | 41 4c 20 69 73 20 38 2c |f SIZE_V|AL is 8,|
|00004c00| 20 72 65 74 75 72 6e 73 | 20 74 68 65 20 76 61 6c | returns| the val|
|00004c10| 75 65 20 6f 66 20 74 68 | 65 20 6e 75 6d 65 72 69 |ue of th|e numeri|
|00004c20| 63 0d 09 09 76 61 72 69 | 61 62 6c 65 20 6c 6f 63 |c...vari|able loc|
|00004c30| 61 74 65 64 20 61 74 20 | 41 44 44 52 2e 20 20 28 |ated at |ADDR. (|
|00004c40| 70 65 65 6b 28 76 61 72 | 70 74 72 28 78 29 2c 38 |peek(var|ptr(x),8|
|00004c50| 29 20 3d 3d 20 78 29 0d | 0d 09 76 61 72 70 74 72 |) == x).|..varptr|
|00004c60| 28 20 56 41 52 20 7c 20 | 53 54 52 49 4e 47 56 41 |( VAR | |STRINGVA|
|00004c70| 52 20 29 0d 09 0d 09 09 | 52 65 74 75 72 6e 73 20 |R ).....|Returns |
|00004c80| 74 68 65 20 6d 65 6d 6f | 72 79 20 61 64 64 72 65 |the memo|ry addre|
|00004c90| 73 73 20 6f 66 20 61 20 | 76 61 72 69 61 62 6c 65 |ss of a |variable|
|00004ca0| 2e 0d 09 0d 09 65 72 6c | 0d 0d 09 09 52 65 74 75 |.....erl|....Retu|
|00004cb0| 72 6e 73 20 74 68 65 20 | 6c 69 6e 65 20 6e 75 6d |rns the |line num|
|00004cc0| 62 65 72 20 6f 66 20 74 | 68 65 20 6c 61 73 74 20 |ber of t|he last |
|00004cd0| 65 72 72 6f 72 2e 20 20 | 5a 65 72 6f 20 69 66 20 |error. |Zero if |
|00004ce0| 74 68 65 0d 09 09 65 72 | 72 6f 72 20 77 61 73 20 |the...er|ror was |
|00004cf0| 69 6e 20 69 6d 6d 65 64 | 69 61 74 65 20 6d 6f 64 |in immed|iate mod|
|00004d00| 65 2e 20 20 54 68 65 20 | 76 61 72 69 61 62 6c 65 |e. The |variable|
|00004d10| 20 65 72 72 6f 72 73 74 | 61 74 75 73 24 0d 09 09 | errorst|atus$...|
|00004d20| 67 69 76 65 73 20 74 68 | 65 20 65 72 72 6f 72 20 |gives th|e error |
|00004d30| 74 79 70 65 2e 0d 0d 09 | 74 69 6d 65 72 0d 0d 09 |type....|timer...|
|00004d40| 09 52 65 74 75 72 6e 73 | 20 61 20 6e 75 6d 65 72 |.Returns| a numer|
|00004d50| 69 63 20 76 61 6c 75 65 | 20 6f 66 20 65 6c 61 70 |ic value| of elap|
|00004d60| 73 65 64 20 6f 66 20 73 | 65 63 6f 6e 64 73 20 66 |sed of s|econds f|
|00004d70| 72 6f 6d 20 74 68 65 0d | 09 09 63 6f 6d 70 75 74 |rom the.|..comput|
|00004d80| 65 72 73 20 69 6e 74 65 | 72 6e 61 6c 20 63 6c 6f |ers inte|rnal clo|
|00004d90| 63 6b 2e 0d 0d 20 20 20 | 20 0d 20 20 20 20 53 54 |ck... | . ST|
|00004da0| 52 49 4e 47 20 46 55 4e | 43 54 49 4f 4e 53 0d 20 |RING FUN|CTIONS. |
|00004db0| 20 20 20 0d 09 78 24 20 | 2b 20 79 24 0d 0d 09 09 | ..x$ |+ y$....|
|00004dc0| 53 74 72 69 6e 67 20 63 | 6f 6e 63 61 74 65 6e 61 |String c|oncatena|
|00004dd0| 74 69 6f 6e 2e 0d 09 0d | 09 09 53 74 72 69 6e 67 |tion....|..String|
|00004de0| 20 63 6f 6e 63 61 74 65 | 6e 61 74 69 6f 6e 20 28 | concate|nation (|
|00004df0| 61 6e 64 20 74 68 65 20 | 4d 49 44 24 2c 20 4c 45 |and the |MID$, LE|
|00004e00| 4e 20 61 6e 64 20 49 4e | 53 54 52 0d 09 09 66 75 |N and IN|STR...fu|
|00004e10| 6e 63 74 69 6f 6e 73 29 | 20 63 61 6e 20 68 61 6e |nctions)| can han|
|00004e20| 64 6c 65 20 73 74 72 69 | 6e 67 73 20 6f 66 20 75 |dle stri|ngs of u|
|00004e30| 70 20 74 6f 20 33 32 37 | 36 36 20 63 68 61 72 61 |p to 327|66 chara|
|00004e40| 63 74 65 72 73 0d 09 09 | 69 6e 20 6c 65 6e 67 74 |cters...|in lengt|
|00004e50| 68 20 28 69 66 20 74 68 | 65 20 6d 65 6d 6f 72 79 |h (if th|e memory|
|00004e60| 20 61 76 61 69 6c 61 62 | 6c 65 20 74 6f 20 74 68 | availab|le to th|
|00004e70| 65 20 70 72 6f 67 72 61 | 6d 0d 09 09 70 65 72 6d |e progra|m...perm|
|00004e80| 69 74 73 29 2e 0d 0d 09 | 63 68 72 24 28 56 41 4c |its)....|chr$(VAL|
|00004e90| 29 0d 0d 09 09 52 65 74 | 75 72 6e 73 20 74 68 65 |)....Ret|urns the|
|00004ea0| 20 61 73 63 69 69 20 63 | 68 61 72 61 63 74 65 72 | ascii c|haracter|
|00004eb0| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 74 | corresp|onding t|
|00004ec0| 6f 20 74 68 65 20 76 61 | 6c 75 65 0d 09 09 6f 66 |o the va|lue...of|
|00004ed0| 20 56 41 4c 2e 0d 0d 09 | 73 74 72 24 28 20 56 41 | VAL....|str$( VA|
|00004ee0| 4c 20 7b 20 2c 20 45 58 | 50 52 20 7d 20 29 0d 0d |L { , EX|PR } )..|
|00004ef0| 09 09 52 65 74 75 72 6e | 73 20 61 20 73 74 72 69 |..Return|s a stri|
|00004f00| 6e 67 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |ng repre|sentatio|
|00004f10| 6e 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |n corres|ponding |
|00004f20| 74 6f 20 56 41 4c 2e 0d | 09 09 49 66 20 45 58 50 |to VAL..|..If EXP|
|00004f30| 52 20 69 73 20 70 72 65 | 73 65 6e 74 20 74 68 65 |R is pre|sent the|
|00004f40| 6e 20 74 68 65 20 73 74 | 72 69 6e 67 20 69 73 20 |n the st|ring is |
|00004f50| 70 61 64 64 65 64 20 74 | 6f 20 74 68 61 74 0d 09 |padded t|o that..|
|00004f60| 09 6c 65 6e 67 74 68 2e | 0d 0d 09 66 6f 72 6d 61 |.length.|...forma|
|00004f70| 74 24 28 20 56 41 4c 20 | 2c 20 53 54 52 45 58 50 |t$( VAL |, STREXP|
|00004f80| 52 20 29 0d 0d 09 09 52 | 65 74 75 72 6e 73 20 74 |R )....R|eturns t|
|00004f90| 68 65 20 73 74 72 69 6e | 67 20 72 65 70 72 65 73 |he strin|g repres|
|00004fa0| 65 6e 74 61 74 69 6f 6e | 20 6f 66 20 56 41 4c 20 |entation| of VAL |
|00004fb0| 66 6f 72 6d 61 74 74 65 | 64 0d 09 09 61 63 63 6f |formatte|d...acco|
|00004fc0| 72 64 69 6e 67 20 74 6f | 20 74 68 65 20 66 6f 72 |rding to| the for|
|00004fd0| 6d 61 74 20 73 74 72 69 | 6e 67 20 53 54 52 45 58 |mat stri|ng STREX|
|00004fe0| 50 52 2e 20 54 68 65 20 | 66 6f 72 6d 61 74 0d 09 |PR. The |format..|
|00004ff0| 09 73 74 72 69 6e 67 20 | 53 54 52 45 58 50 52 20 |.string |STREXPR |
|00005000| 75 73 65 73 20 74 68 65 | 20 73 61 6d 65 20 66 6f |uses the| same fo|
|00005010| 72 6d 61 74 74 69 6e 67 | 20 73 79 6e 74 61 78 20 |rmatting| syntax |
|00005020| 61 73 20 74 68 65 0d 09 | 09 50 52 49 4e 54 20 55 |as the..|.PRINT U|
|00005030| 53 49 4e 47 20 73 74 61 | 74 65 6d 65 6e 74 2e 0d |SING sta|tement..|
|00005040| 09 09 0d 09 69 6e 6b 65 | 79 24 0d 0d 09 09 52 65 |....inke|y$....Re|
|00005050| 74 75 72 6e 20 6f 6e 65 | 20 63 68 61 72 61 63 74 |turn one| charact|
|00005060| 65 72 20 66 72 6f 6d 20 | 74 68 65 20 6b 65 79 62 |er from |the keyb|
|00005070| 6f 61 72 64 20 69 66 20 | 69 6e 70 75 74 20 69 73 |oard if |input is|
|00005080| 0d 09 09 61 76 61 69 6c | 61 62 6c 65 2e 20 52 65 |...avail|able. Re|
|00005090| 74 75 72 6e 73 20 61 20 | 7a 65 72 6f 20 6c 65 6e |turns a |zero len|
|000050a0| 67 74 68 20 73 74 72 69 | 6e 67 20 7b 20 22 22 20 |gth stri|ng { "" |
|000050b0| 7d 20 69 66 20 6e 6f 0d | 09 09 6b 65 79 62 6f 61 |} if no.|..keyboa|
|000050c0| 72 64 20 69 6e 70 75 74 | 20 69 73 20 61 76 61 69 |rd input| is avai|
|000050d0| 6c 61 62 6c 65 2e 20 20 | 4e 6f 6e 2d 62 6c 6f 63 |lable. |Non-bloc|
|000050e0| 6b 69 6e 67 2e 20 20 43 | 61 6e 20 62 65 0d 09 09 |king. C|an be...|
|000050f0| 75 73 65 64 20 66 6f 72 | 20 6b 65 79 62 6f 61 72 |used for| keyboar|
|00005100| 64 20 70 6f 6c 6c 69 6e | 67 2e 0d 0d 09 69 6e 70 |d pollin|g....inp|
|00005110| 75 74 24 28 20 45 58 50 | 52 20 7b 20 2c 20 46 49 |ut$( EXP|R { , FI|
|00005120| 4c 45 4e 55 4d 20 7d 20 | 29 0d 0d 09 09 52 65 74 |LENUM } |)....Ret|
|00005130| 75 72 6e 73 20 45 58 50 | 52 20 63 68 61 72 61 63 |urns EXP|R charac|
|00005140| 74 65 72 73 20 66 72 6f | 6d 20 66 69 6c 65 20 46 |ters fro|m file F|
|00005150| 49 4c 45 4e 55 4d 2e 20 | 49 66 20 66 20 69 73 20 |ILENUM. |If f is |
|00005160| 6e 6f 74 0d 09 09 70 72 | 65 73 65 6e 74 20 74 68 |not...pr|esent th|
|00005170| 65 6e 20 67 65 74 20 69 | 6e 70 75 74 20 66 72 6f |en get i|nput fro|
|00005180| 6d 20 74 68 65 20 63 6f | 6e 73 6f 6c 65 20 6b 65 |m the co|nsole ke|
|00005190| 79 62 6f 61 72 64 2e 0d | 0d 09 6d 69 64 24 28 20 |yboard..|..mid$( |
|000051a0| 61 24 2c 20 69 20 7b 20 | 2c 20 6a 20 7d 20 29 0d |a$, i { |, j } ).|
|000051b0| 0d 09 09 52 65 74 75 72 | 6e 73 20 61 20 73 75 62 |...Retur|ns a sub|
|000051c0| 73 74 72 69 6e 67 20 6f | 66 20 61 24 20 73 74 61 |string o|f a$ sta|
|000051d0| 72 74 69 6e 67 20 61 74 | 20 74 68 65 20 69 27 74 |rting at| the i't|
|000051e0| 68 0d 09 09 70 6f 73 69 | 74 69 6f 6e 73 20 61 6e |h...posi|tions an|
|000051f0| 64 20 6a 20 63 68 61 72 | 61 63 74 65 72 73 20 69 |d j char|acters i|
|00005200| 6e 20 6c 65 6e 67 74 68 | 2e 20 49 66 20 74 68 65 |n length|. If the|
|00005210| 20 73 65 63 6f 6e 64 0d | 09 09 70 61 72 61 6d 65 | second.|..parame|
|00005220| 74 65 72 20 69 73 20 6e | 6f 74 20 73 70 65 63 69 |ter is n|ot speci|
|00005230| 66 69 65 64 20 74 68 65 | 6e 20 74 68 65 20 73 75 |fied the|n the su|
|00005240| 62 73 74 72 69 6e 67 20 | 69 73 0d 09 09 74 61 6b |bstring |is...tak|
|00005250| 65 6e 20 66 72 6f 6d 20 | 74 68 65 20 73 74 61 72 |en from |the star|
|00005260| 74 20 70 6f 73 69 74 69 | 6f 6e 20 74 6f 20 74 68 |t positi|on to th|
|00005270| 65 20 65 6e 64 20 6f 66 | 20 61 24 2e 0d 0d 09 72 |e end of| a$....r|
|00005280| 69 67 68 74 24 28 61 24 | 2c 20 45 58 50 52 20 29 |ight$(a$|, EXPR )|
|00005290| 0d 0d 09 09 52 65 74 75 | 72 6e 73 20 74 68 65 20 |....Retu|rns the |
|000052a0| 72 69 67 68 74 20 45 58 | 50 52 20 63 68 61 72 61 |right EX|PR chara|
|000052b0| 63 74 65 72 73 20 6f 66 | 20 61 24 2e 0d 0d 09 6c |cters of| a$....l|
|000052c0| 65 66 74 24 28 61 24 2c | 20 45 58 50 52 20 29 0d |eft$(a$,| EXPR ).|
|000052d0| 0d 09 09 52 65 74 75 72 | 6e 73 20 74 68 65 20 6c |...Retur|ns the l|
|000052e0| 65 66 74 20 45 58 50 52 | 20 63 68 61 72 61 63 74 |eft EXPR| charact|
|000052f0| 65 72 73 20 6f 66 20 61 | 24 2e 0d 0d 09 66 69 65 |ers of a|$....fie|
|00005300| 6c 64 24 28 20 53 54 52 | 49 4e 47 56 41 4c 2c 20 |ld$( STR|INGVAL, |
|00005310| 56 41 4c 20 7b 20 2c 20 | 53 54 52 49 4e 47 56 41 |VAL { , |STRINGVA|
|00005320| 4c 20 7d 20 29 0d 0d 09 | 09 52 65 74 75 72 6e 73 |L } )...|.Returns|
|00005330| 20 74 68 65 20 4e 2d 74 | 68 20 66 69 65 6c 64 20 | the N-t|h field |
|00005340| 6f 66 20 74 68 65 20 66 | 69 72 73 74 20 73 74 72 |of the f|irst str|
|00005350| 69 6e 67 2e 20 20 49 66 | 20 74 68 65 0d 09 09 6f |ing. If| the...o|
|00005360| 70 74 69 6f 6e 61 6c 20 | 73 74 72 69 6e 67 20 69 |ptional |string i|
|00005370| 73 20 70 72 65 73 65 6e | 74 20 74 68 65 6e 20 75 |s presen|t then u|
|00005380| 73 65 20 74 68 65 20 66 | 69 72 73 74 20 63 68 61 |se the f|irst cha|
|00005390| 72 61 63 74 65 72 0d 09 | 09 6f 66 20 74 68 61 74 |racter..|.of that|
|000053a0| 20 73 74 72 69 6e 67 20 | 61 73 20 74 68 65 20 66 | string |as the f|
|000053b0| 69 65 6c 64 20 73 65 70 | 61 72 61 74 6f 72 2e 20 |ield sep|arator. |
|000053c0| 20 54 68 65 20 64 65 66 | 61 75 6c 74 0d 09 09 73 | The def|ault...s|
|000053d0| 65 70 61 72 61 74 6f 72 | 20 69 73 20 61 20 73 70 |eparator| is a sp|
|000053e0| 61 63 65 2e 20 20 53 69 | 6d 69 6c 61 72 20 74 6f |ace. Si|milar to|
|000053f0| 20 55 4e 49 58 20 27 61 | 77 6b 27 20 66 69 65 6c | UNIX 'a|wk' fiel|
|00005400| 64 73 2e 0d 09 09 0d 09 | 09 65 2e 67 2e 20 20 66 |ds......|.e.g. f|
|00005410| 69 65 6c 64 24 28 22 31 | 20 32 32 20 33 33 33 20 |ield$("1| 22 333 |
|00005420| 34 22 2c 20 33 29 20 20 | 72 65 74 75 72 6e 73 20 |4", 3) |returns |
|00005430| 20 22 33 33 33 22 0d 09 | 09 0d 09 09 49 66 20 56 | "333"..|....If V|
|00005440| 41 4c 20 69 73 20 2d 31 | 20 74 68 65 6e 20 72 65 |AL is -1| then re|
|00005450| 74 75 72 6e 73 20 61 20 | 73 74 72 69 6e 67 20 77 |turns a |string w|
|00005460| 69 74 68 20 61 20 6c 65 | 6e 67 74 68 0d 09 09 65 |ith a le|ngth...e|
|00005470| 71 75 61 6c 20 74 6f 20 | 74 68 65 20 6e 75 6d 62 |qual to |the numb|
|00005480| 65 72 20 6f 66 20 73 65 | 70 65 72 61 74 6f 72 73 |er of se|perators|
|00005490| 20 69 6e 20 74 68 65 20 | 66 69 72 73 74 20 73 74 | in the |first st|
|000054a0| 72 69 6e 67 2e 0d 0d 09 | 68 65 78 24 28 20 56 41 |ring....|hex$( VA|
|000054b0| 4c 20 7b 20 2c 20 45 58 | 50 52 20 7d 20 29 0d 09 |L { , EX|PR } )..|
|000054c0| 62 69 6e 24 28 20 56 41 | 4c 20 7b 20 2c 20 45 58 |bin$( VA|L { , EX|
|000054d0| 50 52 20 7d 20 29 0d 0d | 09 09 52 65 74 75 72 6e |PR } )..|..Return|
|000054e0| 73 20 74 68 65 20 68 65 | 78 61 64 65 63 69 6d 61 |s the he|xadecima|
|000054f0| 6c 20 6f 72 20 62 69 6e | 61 72 79 20 73 74 72 69 |l or bin|ary stri|
|00005500| 6e 67 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |ng repre|sentatio|
|00005510| 6e 0d 09 09 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |n...corr|espondin|
|00005520| 67 20 74 6f 20 56 41 4c | 2e 20 20 49 66 20 45 58 |g to VAL|. If EX|
|00005530| 50 52 20 69 73 20 70 72 | 65 73 65 6e 74 20 74 68 |PR is pr|esent th|
|00005540| 65 6e 20 74 68 65 0d 09 | 09 73 74 72 69 6e 67 20 |en the..|.string |
|00005550| 69 73 20 70 61 64 64 65 | 64 20 77 69 74 68 20 7a |is padde|d with z|
|00005560| 65 72 6f 73 20 74 6f 20 | 6d 61 6b 65 20 69 74 20 |eros to |make it |
|00005570| 74 68 61 74 20 6c 65 6e | 67 74 68 2e 0d 0d 09 6c |that len|gth....l|
|00005580| 63 61 73 65 24 28 20 53 | 54 52 49 4e 47 56 41 4c |case$( S|TRINGVAL|
|00005590| 20 29 0d 0d 09 09 52 65 | 74 75 72 6e 73 20 53 54 | )....Re|turns ST|
|000055a0| 52 49 4e 47 56 41 4c 20 | 69 6e 20 61 6c 6c 20 6c |RINGVAL |in all l|
|000055b0| 6f 77 65 72 20 63 61 73 | 65 20 63 68 61 72 61 63 |ower cas|e charac|
|000055c0| 74 65 72 73 2e 0d 0d 09 | 65 72 72 6f 72 73 74 61 |ters....|errorsta|
|000055d0| 74 75 73 24 0d 0d 09 09 | 52 65 74 75 72 6e 73 20 |tus$....|Returns |
|000055e0| 74 68 65 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 |the erro|r messag|
|000055f0| 65 20 66 6f 72 20 74 68 | 65 20 6c 61 73 74 20 65 |e for th|e last e|
|00005600| 72 72 6f 72 2e 0d 0d 0d | 20 20 20 20 4f 50 45 52 |rror....| OPER|
|00005610| 41 54 4f 52 53 0d 0d 09 | 54 68 65 20 66 6f 6c 6c |ATORS...|The foll|
|00005620| 6f 77 69 6e 67 20 6d 61 | 74 68 20 6f 70 65 72 61 |owing ma|th opera|
|00005630| 74 6f 72 73 20 20 61 72 | 65 20 61 76 61 69 6c 61 |tors ar|e availa|
|00005640| 62 6c 65 3a 0d 0d 09 09 | 5e 09 65 78 70 6f 6e 65 |ble:....|^.expone|
|00005650| 6e 74 69 61 74 69 6f 6e | 0d 09 09 2a 09 6d 75 6c |ntiation|...*.mul|
|00005660| 74 69 70 6c 69 63 61 74 | 69 6f 6e 0d 09 09 2f 09 |tiplicat|ion.../.|
|00005670| 64 69 76 69 73 69 6f 6e | 0d 09 09 6d 6f 64 09 72 |division|...mod.r|
|00005680| 65 6d 61 69 6e 64 65 72 | 0d 09 09 2b 09 61 64 64 |emainder|...+.add|
|00005690| 69 74 69 6f 6e 0d 09 09 | 2d 09 73 75 62 74 72 61 |ition...|-.subtra|
|000056a0| 63 74 69 6f 6e 0d 0d 09 | 6c 6f 67 69 63 61 6c 20 |ction...|logical |
|000056b0| 6f 70 65 72 61 74 6f 72 | 73 3a 20 28 61 6e 79 20 |operator|s: (any |
|000056c0| 6e 6f 6e 2d 7a 65 72 6f | 20 76 61 6c 75 65 20 69 |non-zero| value i|
|000056d0| 73 20 74 72 75 65 29 0d | 0d 09 20 20 20 20 20 20 |s true).|.. |
|000056e0| 20 20 6e 6f 74 09 6c 6f | 67 69 63 61 6c 20 6e 6f | not.lo|gical no|
|000056f0| 74 0d 0d 09 62 69 74 77 | 69 73 65 20 6f 70 65 72 |t...bitw|ise oper|
|00005700| 61 74 6f 72 73 3a 0d 0d | 09 20 20 20 20 20 20 20 |ators:..|. |
|00005710| 20 61 6e 64 09 62 69 74 | 77 69 73 65 20 61 6e 64 | and.bit|wise and|
|00005720| 0d 09 20 20 20 20 20 20 | 20 20 6f 72 09 62 69 74 |.. | or.bit|
|00005730| 77 69 73 65 20 6f 72 0d | 09 20 20 20 20 20 20 20 |wise or.|. |
|00005740| 20 78 6f 72 09 62 69 74 | 77 69 73 65 20 65 78 63 | xor.bit|wise exc|
|00005750| 6c 75 73 69 76 65 2d 6f | 72 0d 0d 09 63 6f 6d 70 |lusive-o|r...comp|
|00005760| 61 72 69 73 6f 6e 20 6f | 70 65 72 61 74 6f 72 73 |arison o|perators|
|00005770| 3a 0d 0d 09 20 20 20 20 | 20 20 20 20 3c 3d 09 6c |:... | <=.l|
|00005780| 65 73 73 20 74 68 61 6e | 20 6f 72 20 65 71 75 61 |ess than| or equa|
|00005790| 6c 0d 09 20 20 20 20 20 | 20 20 20 3c 3e 09 6e 6f |l.. | <>.no|
|000057a0| 74 20 65 71 75 61 6c 20 | 74 6f 0d 09 20 20 20 20 |t equal |to.. |
|000057b0| 20 20 20 20 3e 3d 09 67 | 72 65 61 74 65 72 20 74 | >=.g|reater t|
|000057c0| 68 61 6e 20 6f 72 20 65 | 71 75 61 6c 0d 09 20 20 |han or e|qual.. |
|000057d0| 20 20 20 20 20 20 3d 09 | 65 71 75 61 6c 0d 09 20 | =.|equal.. |
|000057e0| 20 20 20 20 20 20 20 3e | 09 67 72 65 61 74 65 72 | >|.greater|
|000057f0| 20 74 68 61 6e 0d 09 20 | 20 20 20 20 20 20 20 3c | than.. | <|
|00005800| 09 6c 65 73 73 20 74 68 | 61 6e 0d 0d 09 78 24 3d |.less th|an...x$=|
|00005810| 79 24 2c 20 78 24 3c 79 | 24 2c 20 78 24 3e 79 24 |y$, x$<y|$, x$>y$|
|00005820| 2c 20 78 24 3c 3d 79 24 | 2c 20 78 24 3e 3d 79 24 |, x$<=y$|, x$>=y$|
|00005830| 2c 20 78 24 3c 3e 79 24 | 0d 0d 09 09 53 74 72 69 |, x$<>y$|....Stri|
|00005840| 6e 67 20 63 6f 6d 70 61 | 72 69 73 6f 6e 73 3b 20 |ng compa|risons; |
|00005850| 72 65 73 75 6c 74 20 69 | 73 20 31 20 69 66 20 74 |result i|s 1 if t|
|00005860| 72 75 65 2c 20 30 20 69 | 66 20 66 61 6c 73 65 2e |rue, 0 i|f false.|
|00005870| 0d 09 09 0d 09 4f 70 65 | 72 61 74 6f 72 20 70 72 |.....Ope|rator pr|
|00005880| 65 63 65 64 65 6e 63 65 | 20 28 68 69 67 68 65 73 |ecedence| (highes|
|00005890| 74 20 74 6f 20 6c 6f 77 | 65 73 74 29 3a 0d 0d 09 |t to low|est):...|
|000058a0| 09 28 20 29 0d 09 09 2d | 7b 75 6e 61 72 79 5f 6d |.( )...-|{unary_m|
|000058b0| 69 6e 75 73 7d 20 20 66 | 75 6e 63 74 69 6f 6e 73 |inus} f|unctions|
|000058c0| 0d 09 09 5e 0d 09 09 2a | 20 2f 20 6d 6f 64 0d 09 |...^...*| / mod..|
|000058d0| 09 2b 20 2d 0d 09 09 3d | 20 3c 20 3e 20 3c 3d 20 |.+ -...=| < > <= |
|000058e0| 3e 3d 20 3c 3e 0d 09 09 | 6e 6f 74 0d 09 09 61 6e |>= <>...|not...an|
|000058f0| 64 0d 09 09 6f 72 20 78 | 6f 72 0d 0d 20 20 20 20 |d...or x|or.. |
|00005900| 0d 20 20 20 20 55 4e 49 | 58 20 66 75 6e 63 74 69 |. UNI|X functi|
|00005910| 6f 6e 73 3a 0d 0d 09 73 | 79 73 28 20 53 54 52 49 |ons:...s|ys( STRI|
|00005920| 4e 47 56 41 4c 20 29 0d | 0d 09 09 55 4e 49 58 20 |NGVAL ).|...UNIX |
|00005930| 73 79 73 74 65 6d 20 63 | 61 6c 6c 2e 20 20 54 68 |system c|all. Th|
|00005940| 65 20 73 74 72 69 6e 67 | 20 70 61 72 61 6d 65 74 |e string| paramet|
|00005950| 65 72 20 69 73 20 67 69 | 76 65 6e 20 74 6f 0d 09 |er is gi|ven to..|
|00005960| 09 74 68 65 20 73 68 65 | 6c 6c 20 61 73 20 61 20 |.the she|ll as a |
|00005970| 63 6f 6d 6d 61 6e 64 2e | 20 20 52 65 74 75 72 6e |command.| Return|
|00005980| 73 20 65 78 69 74 20 73 | 74 61 74 75 73 2e 0d 0d |s exit s|tatus...|
|00005990| 09 67 65 74 65 6e 76 24 | 28 20 53 54 52 49 4e 47 |.getenv$|( STRING|
|000059a0| 56 41 4c 20 29 0d 09 20 | 20 20 20 20 0d 09 09 52 |VAL ).. | ...R|
|000059b0| 65 74 75 72 6e 73 20 76 | 61 6c 75 65 20 66 6f 72 |eturns v|alue for|
|000059c0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 6e 61 6d | environ|ment nam|
|000059d0| 65 20 53 54 52 49 4e 47 | 56 41 4c 2e 0d 09 09 20 |e STRING|VAL.... |
|000059e0| 20 20 20 20 20 0d 09 61 | 72 67 76 24 0d 09 09 52 | ..a|rgv$...R|
|000059f0| 65 74 75 72 6e 73 20 74 | 68 65 20 55 4e 49 58 20 |eturns t|he UNIX |
|00005a00| 73 68 65 6c 6c 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |shell co|mmand li|
|00005a10| 6e 65 20 61 72 67 75 6d | 65 6e 74 73 2e 0d 0d 0d |ne argum|ents....|
|00005a20| 20 20 20 20 4d 61 63 69 | 6e 74 6f 73 68 20 63 6f | Maci|ntosh co|
|00005a30| 6d 6d 61 6e 64 73 3a 0d | 0d 09 2a 2a 2a 20 4e 4f |mmands:.|..*** NO|
|00005a40| 54 45 20 2a 2a 2a 0d 09 | 0d 09 09 4d 61 6e 79 20 |TE ***..|...Many |
|00005a50| 4d 61 63 4f 53 20 73 70 | 65 63 69 66 69 63 20 66 |MacOS sp|ecific f|
|00005a60| 75 6e 63 74 69 6f 6e 73 | 20 61 6e 64 20 63 6f 6d |unctions| and com|
|00005a70| 6d 61 6e 64 73 20 61 72 | 65 20 6f 6e 6c 79 0d 09 |mands ar|e only..|
|00005a80| 09 64 6f 63 75 6d 65 6e | 74 65 64 20 69 6e 20 74 |.documen|ted in t|
|00005a90| 68 65 20 43 68 69 70 6d | 75 6e 6b 20 42 61 73 69 |he Chipm|unk Basi|
|00005aa0| 63 20 71 75 69 63 6b 20 | 72 65 66 65 72 65 6e 63 |c quick |referenc|
|00005ab0| 65 20 66 69 6c 65 2e 0d | 0d 09 67 6f 74 6f 78 79 |e file..|..gotoxy|
|00005ac0| 20 56 41 4c 2c 20 56 41 | 4c 0d 0d 09 09 53 65 74 | VAL, VA|L....Set|
|00005ad0| 20 74 68 65 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 20 | the hor|izontal |
|00005ae0| 61 6e 64 20 76 65 72 74 | 69 63 61 6c 20 6c 6f 63 |and vert|ical loc|
|00005af0| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 0d 09 09 74 |ation of| the...t|
|00005b00| 65 78 74 20 6f 75 74 70 | 75 74 20 63 75 72 73 6f |ext outp|ut curso|
|00005b10| 72 2e 20 20 28 30 2c 30 | 29 20 69 73 20 74 68 65 |r. (0,0|) is the|
|00005b20| 20 75 70 70 65 72 20 6c | 65 66 74 20 63 6f 72 6e | upper l|eft corn|
|00005b30| 65 72 2e 0d 0d 09 6d 6f | 76 65 74 6f 20 56 41 4c |er....mo|veto VAL|
|00005b40| 2c 20 56 41 4c 0d 0d 09 | 09 53 65 74 73 20 74 68 |, VAL...|.Sets th|
|00005b50| 65 20 28 78 2c 79 29 20 | 6c 6f 63 61 74 69 6f 6e |e (x,y) |location|
|00005b60| 20 6f 66 20 74 68 65 20 | 67 72 61 70 68 69 63 73 | of the |graphics|
|00005b70| 20 70 65 6e 2e 0d 0d 09 | 6c 69 6e 65 74 6f 20 56 | pen....|lineto V|
|00005b80| 41 4c 2c 20 56 41 4c 0d | 0d 09 09 44 72 61 77 73 |AL, VAL.|...Draws|
|00005b90| 20 61 20 6c 69 6e 65 20 | 66 72 6f 6d 20 74 68 65 | a line |from the|
|00005ba0| 20 63 75 72 72 65 6e 74 | 20 70 65 6e 20 6c 6f 63 | current| pen loc|
|00005bb0| 61 74 69 6f 6e 20 74 6f | 20 6c 6f 63 61 74 69 6f |ation to| locatio|
|00005bc0| 6e 0d 09 09 28 78 2c 79 | 29 20 69 6e 20 74 68 65 |n...(x,y|) in the|
|00005bd0| 20 67 72 61 70 68 69 63 | 73 20 77 69 6e 64 6f 77 | graphic|s window|
|00005be0| 2e 0d 0d 09 77 69 6e 64 | 6f 77 20 78 2c 20 79 2c |....wind|ow x, y,|
|00005bf0| 20 63 68 61 72 5f 63 6f | 6c 73 2c 20 63 68 61 72 | char_co|ls, char|
|00005c00| 5f 6c 69 6e 65 73 0d 0d | 09 09 43 68 61 6e 67 65 |_lines..|..Change|
|00005c10| 20 74 68 65 20 74 65 78 | 74 20 63 6f 6e 73 6f 6c | the tex|t consol|
|00005c20| 65 20 77 69 6e 64 6f 77 | 20 70 6f 73 69 74 69 6f |e window| positio|
|00005c30| 6e 20 61 6e 64 20 73 69 | 7a 65 2e 0d 0d 09 6d 6f |n and si|ze....mo|
|00005c40| 72 73 65 20 53 54 52 49 | 4e 47 56 41 4c 20 7b 20 |rse STRI|NGVAL { |
|00005c50| 2c 20 56 41 4c 2c 20 56 | 41 4c 2c 20 56 41 4c 2c |, VAL, V|AL, VAL,|
|00005c60| 20 56 41 4c 20 7d 0d 0d | 09 09 50 6c 61 79 73 20 | VAL }..|..Plays |
|00005c70| 6d 6f 72 73 65 20 63 6f | 64 65 20 74 68 72 6f 75 |morse co|de throu|
|00005c80| 67 68 20 74 68 65 20 73 | 70 65 61 6b 65 72 2e 0d |gh the s|peaker..|
|00005c90| 09 09 54 68 65 20 70 61 | 72 61 6d 65 74 65 72 73 |..The pa|rameters|
|00005ca0| 20 61 72 65 3a 20 64 6f | 74 2d 73 70 65 65 64 2d | are: do|t-speed-|
|00005cb0| 77 70 6d 2c 20 76 6f 6c | 75 6d 65 7b 30 2e 2e 31 |wpm, vol|ume{0..1|
|00005cc0| 30 30 7d 2c 0d 09 09 77 | 6f 72 64 2d 73 70 65 65 |00},...w|ord-spee|
|00005cd0| 64 2d 77 70 6d 2c 20 66 | 72 65 71 75 65 6e 63 79 |d-wpm, f|requency|
|00005ce0| 7b 69 6e 20 48 7a 20 6f | 72 20 63 70 73 7d 0d 0d |{in Hz o|r cps}..|
|00005cf0| 09 73 6f 75 6e 64 20 56 | 41 4c 2c 20 56 41 4c 2c |.sound V|AL, VAL,|
|00005d00| 20 56 41 4c 20 0d 0d 09 | 09 54 68 65 20 70 61 72 | VAL ...|.The par|
|00005d10| 61 6d 65 74 65 72 73 20 | 61 72 65 3a 0d 09 09 66 |ameters |are:...f|
|00005d20| 72 65 71 75 65 6e 63 79 | 7b 69 6e 20 48 7a 7d 2c |requency|{in Hz},|
|00005d30| 20 73 65 63 6f 6e 64 73 | 5f 64 75 72 61 74 69 6f | seconds|_duratio|
|00005d40| 6e 2c 20 76 6f 6c 75 6d | 65 7b 30 2e 2e 31 30 30 |n, volum|e{0..100|
|00005d50| 7d 0d 09 0d 09 73 61 79 | 20 53 54 52 49 4e 47 56 |}....say| STRINGV|
|00005d60| 41 4c 0d 0d 09 09 53 70 | 65 61 6b 73 20 53 54 52 |AL....Sp|eaks STR|
|00005d70| 49 4e 47 56 41 4c 20 69 | 66 20 74 68 65 20 53 70 |INGVAL i|f the Sp|
|00005d80| 65 65 63 68 20 4d 61 6e | 61 67 65 72 20 45 78 74 |eech Man|ager Ext|
|00005d90| 65 6e 73 69 6f 6e 20 69 | 73 0d 09 09 72 65 73 69 |ension i|s...resi|
|00005da0| 64 65 6e 74 2e 20 20 54 | 72 79 20 22 73 61 79 20 |dent. T|ry "say |
|00005db0| 61 24 2c 32 30 30 2c 34 | 36 2c 31 22 20 66 6f 72 |a$,200,4|6,1" for|
|00005dc0| 20 66 61 73 74 65 72 20 | 73 70 65 65 63 68 2e 0d | faster |speech..|
|00005dd0| 0d 09 6f 70 65 6e 20 22 | 53 46 47 65 74 46 69 6c |..open "|SFGetFil|
|00005de0| 65 22 20 66 6f 72 20 69 | 6e 70 75 74 20 20 61 73 |e" for i|nput as|
|00005df0| 20 23 46 4e 55 4d 0d 09 | 6f 70 65 6e 20 22 53 46 | #FNUM..|open "SF|
|00005e00| 50 75 74 46 69 6c 65 22 | 20 66 6f 72 20 6f 75 74 |PutFile"| for out|
|00005e10| 70 75 74 20 61 73 20 23 | 46 4e 55 4d 0d 0d 09 09 |put as #|FNUM....|
|00005e20| 50 75 74 73 20 75 70 20 | 61 20 73 74 61 6e 64 61 |Puts up |a standa|
|00005e30| 72 64 20 66 69 6c 65 20 | 64 69 61 6c 6f 67 20 66 |rd file |dialog f|
|00005e40| 6f 72 20 74 68 65 20 66 | 69 6c 65 20 6e 61 6d 65 |or the f|ile name|
|00005e50| 2e 0d 0d 09 66 69 6c 65 | 73 20 7b 20 53 54 52 49 |....file|s { STRI|
|00005e60| 4e 47 56 41 4c 20 7d 0d | 09 0d 09 09 44 69 73 70 |NGVAL }.|....Disp|
|00005e70| 6c 61 79 73 20 61 20 6c | 69 73 74 69 6e 67 20 6f |lays a l|isting o|
|00005e80| 66 20 66 69 6c 65 73 20 | 69 6e 20 74 68 65 20 6e |f files |in the n|
|00005e90| 61 6d 65 64 20 6f 72 20 | 63 75 72 72 65 6e 74 0d |amed or |current.|
|00005ea0| 09 09 64 69 72 65 63 74 | 6f 72 79 2e 0d 09 0d 20 |..direct|ory.... |
|00005eb0| 20 20 20 4d 61 63 69 6e | 74 6f 73 68 20 66 75 6e | Macin|tosh fun|
|00005ec0| 63 74 69 6f 6e 73 3a 0d | 09 0d 09 66 72 65 0d 09 |ctions:.|...fre..|
|00005ed0| 09 52 65 74 75 72 6e 73 | 20 74 68 65 20 61 6d 6f |.Returns| the amo|
|00005ee0| 75 6e 74 20 6f 66 20 6d | 65 6d 6f 72 79 20 6c 65 |unt of m|emory le|
|00005ef0| 66 74 20 66 6f 72 20 70 | 72 6f 67 72 61 6d 20 75 |ft for p|rogram u|
|00005f00| 73 65 2e 20 0d 09 0d 09 | 64 61 74 65 24 0d 09 09 |se. ....|date$...|
|00005f10| 52 65 74 75 72 6e 73 20 | 61 20 73 74 72 69 6e 67 |Returns |a string|
|00005f20| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 74 | corresp|onding t|
|00005f30| 6f 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 64 61 |o the cu|rrent da|
|00005f40| 74 65 2e 0d 0d 09 74 69 | 6d 65 24 0d 09 09 52 65 |te....ti|me$...Re|
|00005f50| 74 75 72 6e 73 20 61 20 | 73 74 72 69 6e 67 20 63 |turns a |string c|
|00005f60| 6f 72 72 65 73 70 6f 6e | 64 69 6e 67 20 74 6f 20 |orrespon|ding to |
|00005f70| 74 68 65 20 63 75 72 72 | 65 6e 74 20 74 69 6d 65 |the curr|ent time|
|00005f80| 2e 0d 0d 09 70 6f 73 28 | 56 41 4c 29 0d 0d 09 09 |....pos(|VAL)....|
|00005f90| 52 65 74 75 72 6e 73 20 | 74 68 65 20 68 6f 72 69 |Returns |the hori|
|00005fa0| 7a 6f 6e 74 61 6c 20 70 | 6f 73 69 74 69 6f 6e 20 |zontal p|osition |
|00005fb0| 6f 66 20 74 68 65 20 74 | 65 78 74 20 63 75 72 73 |of the t|ext curs|
|00005fc0| 6f 72 2e 0d 09 09 49 66 | 20 56 41 4c 20 69 73 20 |or....If| VAL is |
|00005fd0| 6e 65 67 61 74 69 76 65 | 20 72 65 74 75 72 6e 73 |negative| returns|
|00005fe0| 20 74 68 65 20 76 65 72 | 74 69 63 61 6c 20 70 6f | the ver|tical po|
|00005ff0| 73 69 74 69 6f 6e 2e 0d | 09 0d 09 65 72 72 6f 72 |sition..|...error|
|00006000| 73 74 61 74 75 73 24 0d | 09 0d 09 09 41 6c 73 6f |status$.|....Also|
|00006010| 20 72 65 74 75 72 6e 73 | 20 74 68 65 20 66 75 6c | returns| the ful|
|00006020| 6c 20 70 61 74 68 20 6e | 61 6d 65 20 6f 66 20 74 |l path n|ame of t|
|00006030| 68 65 20 70 72 6f 67 72 | 61 6d 20 61 6e 64 0d 09 |he progr|am and..|
|00006040| 09 66 69 6c 65 73 20 6f | 70 65 6e 65 64 20 62 79 |.files o|pened by|
|00006050| 20 53 46 47 65 74 46 69 | 6c 65 2e 20 28 75 6e 64 | SFGetFi|le. (und|
|00006060| 65 72 20 53 79 73 74 65 | 6d 20 37 20 61 6e 64 20 |er Syste|m 7 and |
|00006070| 6f 6e 6c 79 0d 09 09 69 | 66 20 74 68 65 20 6e 61 |only...i|f the na|
|00006080| 6d 65 20 66 69 74 73 20 | 69 6e 20 61 20 73 74 72 |me fits |in a str|
|00006090| 69 6e 67 20 76 61 72 69 | 61 62 6c 65 29 0d 09 0d |ing vari|able)...|
|000060a0| 09 0d 20 20 20 20 4d 61 | 63 69 6e 74 6f 73 68 20 |.. Ma|cintosh |
|000060b0| 6d 65 6e 75 20 69 74 65 | 6d 73 3a 0d 0d 09 4f 70 |menu ite|ms:...Op|
|000060c0| 65 6e 20 6f 72 20 3c 63 | 6d 64 3e 4f 20 09 77 69 |en or <c|md>O .wi|
|000060d0| 6c 6c 20 70 75 74 20 75 | 70 20 61 20 64 69 61 6c |ll put u|p a dial|
|000060e0| 6f 67 20 74 6f 20 61 6c | 6c 6f 77 20 73 65 6c 65 |og to al|low sele|
|000060f0| 63 74 69 6f 6e 0d 09 09 | 09 6f 66 20 61 20 70 72 |ction...|.of a pr|
|00006100| 6f 67 72 61 6d 20 66 69 | 6c 65 20 74 6f 20 6c 6f |ogram fi|le to lo|
|00006110| 61 64 2e 20 20 42 61 73 | 69 63 20 50 72 6f 67 72 |ad. Bas|ic Progr|
|00006120| 61 6d 0d 09 09 09 66 69 | 6c 65 20 6e 61 6d 65 73 |am....fi|le names|
|00006130| 20 6d 75 73 74 20 65 6e | 64 20 77 69 74 68 20 61 | must en|d with a|
|00006140| 20 22 2e 62 61 73 22 20 | 73 75 66 66 69 78 2e 0d | ".bas" |suffix..|
|00006150| 0d 09 43 6f 70 79 09 09 | 77 69 6c 6c 20 61 6c 6c |..Copy..|will all|
|00006160| 6f 77 20 63 6f 70 79 69 | 6e 67 20 70 69 63 74 73 |ow copyi|ng picts|
|00006170| 20 66 72 6f 6d 20 74 68 | 65 20 67 72 61 70 68 69 | from th|e graphi|
|00006180| 63 73 0d 09 09 09 77 69 | 6e 64 6f 77 2e 0d 09 0d |cs....wi|ndow....|
|00006190| 09 3c 63 6d 64 3e 2e 20 | 09 09 43 6f 6d 6d 61 6e |.<cmd>. |..Comman|
|000061a0| 64 2d 70 65 72 69 6f 64 | 20 77 69 6c 6c 20 73 74 |d-period| will st|
|000061b0| 6f 70 20 70 72 6f 67 72 | 61 6d 20 65 78 65 63 75 |op progr|am execu|
|000061c0| 74 69 6f 6e 2e 0d 0d 09 | 50 72 69 6e 74 09 09 50 |tion....|Print..P|
|000061d0| 72 69 6e 74 20 67 72 61 | 70 68 69 63 73 20 77 69 |rint gra|phics wi|
|000061e0| 6e 64 6f 77 20 69 66 20 | 69 74 27 73 20 74 68 65 |ndow if |it's the|
|000061f0| 20 66 72 6f 6e 74 6d 6f | 73 74 0d 09 09 09 77 69 | frontmo|st....wi|
|00006200| 6e 64 6f 77 2e 20 4f 6e | 6c 79 20 74 68 65 20 67 |ndow. On|ly the g|
|00006210| 72 61 70 68 69 63 73 20 | 77 69 6e 64 6f 77 20 63 |raphics |window c|
|00006220| 61 6e 20 62 65 20 70 72 | 69 6e 74 65 64 2e 0d 0d |an be pr|inted...|
|00006230| 0d 20 20 20 20 52 45 53 | 45 52 56 45 44 20 57 4f |. RES|ERVED WO|
|00006240| 52 44 53 20 41 4e 44 20 | 53 59 4d 42 4f 4c 53 0d |RDS AND |SYMBOLS.|
|00006250| 0d 09 2b 20 2d 20 2a 20 | 2f 20 5e 20 6d 6f 64 20 |..+ - * |/ ^ mod |
|00006260| 20 61 6e 64 20 6f 72 20 | 78 6f 72 20 6e 6f 74 20 | and or |xor not |
|00006270| 20 3e 20 3c 20 3e 3d 20 | 3c 3d 20 3c 3e 20 3d 20 | > < >= |<= <> = |
|00006280| 28 29 0d 09 73 71 72 20 | 6c 6f 67 20 65 78 70 20 |()..sqr |log exp |
|00006290| 73 69 6e 20 63 6f 73 20 | 74 61 6e 20 61 74 6e 20 |sin cos |tan atn |
|000062a0| 20 70 69 0d 09 61 62 73 | 20 73 67 6e 20 69 6e 74 | pi..abs| sgn int|
|000062b0| 20 72 6e 64 20 70 65 65 | 6b 20 76 61 6c 20 61 73 | rnd pee|k val as|
|000062c0| 63 20 6c 65 6e 0d 09 6d | 69 64 24 20 72 69 67 68 |c len..m|id$ righ|
|000062d0| 74 24 20 6c 65 66 74 24 | 20 73 74 72 24 20 63 68 |t$ left$| str$ ch|
|000062e0| 72 24 20 20 6c 63 61 73 | 65 24 20 75 63 61 73 65 |r$ lcas|e$ ucase|
|000062f0| 24 0d 09 67 6f 74 6f 20 | 20 69 66 20 74 68 65 6e |$..goto | if then|
|00006300| 20 65 6c 73 65 20 65 6e | 64 69 66 20 20 67 6f 73 | else en|dif gos|
|00006310| 75 62 20 72 65 74 75 72 | 6e 0d 09 66 6f 72 20 74 |ub retur|n..for t|
|00006320| 6f 20 73 74 65 70 20 6e | 65 78 74 20 20 77 68 69 |o step n|ext whi|
|00006330| 6c 65 20 77 65 6e 64 20 | 20 73 65 6c 65 63 74 20 |le wend | select |
|00006340| 63 61 73 65 0d 09 72 65 | 6d 20 20 6c 65 74 20 20 |case..re|m let |
|00006350| 64 69 6d 20 65 72 61 73 | 65 20 20 64 61 74 61 20 |dim eras|e data |
|00006360| 72 65 61 64 20 72 65 73 | 74 6f 72 65 20 20 20 66 |read res|tore f|
|00006370| 69 65 6c 64 24 0d 09 69 | 6e 70 75 74 20 70 72 69 |ield$..i|nput pri|
|00006380| 6e 74 20 6f 70 65 6e 20 | 66 6f 72 20 6f 75 74 70 |nt open |for outp|
|00006390| 75 74 20 61 70 70 65 6e | 64 20 61 73 20 63 6c 6f |ut appen|d as clo|
|000063a0| 73 65 23 20 6c 6f 61 64 | 20 73 61 76 65 0d 09 72 |se# load| save..r|
|000063b0| 61 6e 64 6f 6d 20 6c 6f | 66 20 6c 6f 63 20 67 65 |andom lo|f loc ge|
|000063c0| 74 20 70 75 74 20 20 20 | 0d 09 69 6e 6b 65 79 24 |t put |..inkey$|
|000063d0| 20 20 69 6e 70 75 74 24 | 20 65 6f 66 20 20 66 69 | input$| eof fi|
|000063e0| 6c 65 73 20 20 66 67 65 | 74 62 79 74 65 23 20 66 |les fge|tbyte# f|
|000063f0| 73 65 65 6b 23 20 66 70 | 75 74 62 79 74 65 0d 09 |seek# fp|utbyte..|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.